File: L_buffer.ok

package info (click to toggle)
nana 2.1-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,416 kB
  • ctags: 470
  • sloc: ansic: 4,369; sh: 2,271; makefile: 194; cpp: 106; tcl: 48; lisp: 39
file content (64 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
0. dump both buffers which should be empty!
 small =
* L_buffer_dump =
buffer was empty
* end of dump
 large =
* L_buffer_dump =
buffer was empty
* end of dump
1. Add 's' to small, 'l' to large using L_buffer_putchar
 small =
* L_buffer_dump =
s* end of dump
 large =
* L_buffer_dump =
l* end of dump
2. Add 1..10 each on a single line to large using
   L_buffer_printf and then dump it
 large =
* L_buffer_dump =
l1
2
3
4
5
6
7
8
9
10
* end of dump
3. Add 'x= 1..10000' each on a single line to small using
   L_buffer_printf and then dump it
 small =
* L_buffer_dump =
 9991
x= 9992
x= 9993
x= 9994
x= 9995
x= 9996
x= 9997
x= 9998
x= 9999
x= 10000
* end of dump
4. Clear large log + add 10 'messages' to large using
   L_buffer_puts and then dump it
 large =
* L_buffer_dump =
messages
messages
messages
messages
messages
messages
messages
messages
messages
messages
* end of dump
5. wraparound off, send of lots of chars, expect 1..8
* L_buffer_dump =
12345678* end of dump