-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgregg_suffix.unit
593 lines (472 loc) · 142 KB
/
gregg_suffix.unit
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
#!/usr/local/bin/koios
# koios-polos (axis of heaven) unit testing meta-language
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
PREP include the prototype headers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
incl include public header gregg.h - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àè] (SUFFIX) verify details of suffix handler 0s handler SUFFIX__handler, SUFFIX__purge ((01.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
exec open using stdin yPARSE_stdin i_equal 0
local create working variable - - - - - - - - - - - - - int c = 0;
COND verify simple success - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
load add a line to stdin stdin ´ § >·´ § v · 5 · 29 § -ing, -thing § · § · § observing, caring, drinking, knowing, liking, using, forgetting §¦
exec read the record yPARSE_read &c, NULL, NULL, NULL i_greater 0
exec call handler SUFFIX__handler 2 , "´" , '-' , NULL i_equal 0
exec ... check count SUFFIX__count i_equal 1
get ... check line SUFFIX__detail 0 s_equal 0 2 1å´æ · v · 5 · 29 3å>·´æ 0åæ 0åæ ·
get ... check line SUFFIX__detail 1 s_equal n/a
get ... check line SUFFIX__detail 2 s_equal n/a
COND verify adding a second entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.003)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
load add a line to stdin stdin Ï § >·z § · · 5 · 29 § -ings, -things § ´ § s § sayings, readings, writings §¦
exec read the record yPARSE_read &c, NULL, NULL, NULL i_greater 0
exec call handler SUFFIX__handler 3 , "Ï" , '-' , NULL i_equal 0
exec ... check count SUFFIX__count i_equal 2
get ... check line SUFFIX__detail 0 s_equal 0 2 1å´æ · v · 5 · 29 3å>·´æ 0åæ 0åæ ·
get ... check line SUFFIX__detail 1 s_equal 1 3 1åÏæ a · · 5 · 29 3å>·zæ 1å´æ 1åsæ ·
get ... check line SUFFIX__detail 2 s_equal n/a
COND verify one with a ending code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.003)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
load add a line to stdin stdin + § ¬¬¬¬¬¬¬¬¬¬ § ¬¬¬¬¬¬¬¬¬¬¬¬ § ¬¬¬ -ing, -ings, -ingly ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ § ´,Ï, § § longing, longings, longingly §¦
exec read the record yPARSE_read &c, NULL, NULL, NULL i_greater 0
exec call handler SUFFIX__handler 15 , "+" , '-' , NULL i_equal 0
exec ... check count SUFFIX__count i_equal 3
get ... check line SUFFIX__detail 0 s_equal 0 2 1å´æ · v · 5 · 29 3å>·´æ 0åæ 0åæ ·
get ... check line SUFFIX__detail 1 s_equal 1 3 1åÏæ a · · 5 · 29 3å>·zæ 1å´æ 1åsæ ·
get ... check line SUFFIX__detail 2 s_equal 2 15 1å+æ + · · · · · 0åæ 5å´,Ï, æ 0åæ ·
get ... check line SUFFIX__detail 3 s_equal n/a
COND verify purging entries - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call purge SUFFIX__purge i_equal 0
exec ... check count SUFFIX__count i_equal 0
get ... check line SUFFIX__detail 0 s_equal n/a
get ... check line SUFFIX__detail 1 s_equal n/a
get ... check line SUFFIX__detail 2 s_equal n/a
get ... check line SUFFIX__detail 3 s_equal n/a
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.005)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àé] (SUFFIX) verify reading suffixes from file 0s file SUFFIX_load ((02.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char *x_name = "/tmp/suffix.txt";
COND create a simple input file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec create empty file yURG_touch x_name , "root" , "root" , "0600" i_equal 0
file read for writing - - - - - - - - - - - - - [[ x_name ]]
append ... add a record - - - - - - - - - - - - - # natsvi configuration file
append ... add a record - - - - - - - - - - - - -
append ... add a record - - - - - - - - - - - - - #23456789-123456789- § 123456789-123456789- §
append ... add a record - - - - - - - - - - - - - ´ § ·>·´ § v · 5 · 29 § -ing, -thing § § § observing, caring, drinking, knowing, liking, using, forgetting §
append ... add a record - - - - - - - - - - - - - Ï § ·>·z § · · 5 · 29 § -ings, -things § ´ § s § sayings, readings, writings §
append ... add a record - - - - - - - - - - - - -
append ... add a record - - - - - - - - - - - - - + § § · · · · -1 § § ´,Ï, § § longing, longings, longingly §
append ... add a record - - - - - - - - - - - - - # end-of-file
exec verify file size yURG_peek_count x_name i_equal 8
COND verify reading the file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.003)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call loader SUFFIX_load x_name i_equal 0
exec ... check count SUFFIX__count i_equal 3
get ... check line SUFFIX__detail 0 s_equal 0 4 1å´æ · v · 5 · 29 4å·>·´æ 0åæ 0åæ ·
get ... check line SUFFIX__detail 1 s_equal 1 5 1åÏæ a · · 5 · 29 4å·>·zæ 1å´æ 1åsæ ·
get ... check line SUFFIX__detail 2 s_equal 2 7 1å+æ + · · · · · 0åæ 5å´,Ï, æ 0åæ ·
get ... check line SUFFIX__detail 3 s_equal n/a
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec remove test file yURG_rm x_name i_equal 0
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àê] (SUFFIX) verify finding suffixes 0s finding SUFFIX_by_name ((02.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - short n = 0;
local create working/return variable - - - - - - - - - - - - - char x_type = '·';
local create working/return variable - - - - - - - - - - - - - char x_gregg [LEN_LABEL] = "";
local create working/return variable - - - - - - - - - - - - - char x_base [LEN_LABEL] = "";
local create working/return variable - - - - - - - - - - - - - char x_change [LEN_LABEL] = "";
local create working/return variable - - - - - - - - - - - - - void *x_point = NULL;
REUSE -E- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND verify quick success on first suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "´" , &x_type , x_gregg , x_base , x_change , &x_point i_equal 1 n
echo ... check index - - - - - - - - - - - - - n i_equal 1
echo ... check type - - - - - - - - - - - - - x_type i_equal '·'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal å·>·´æ
echo ... check base - - - - - - - - - - - - - x_base w_equal åæ
echo ... check change - - - - - - - - - - - - - x_change w_equal åæ
get ... check line SUFFIX__detail n s_equal 1 6 1å´æ · v · 5 · 29 4å·>·´æ 0åæ 0åæ 1
COND attempt a null suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name NULL , &x_type , x_gregg , x_base , x_change , &x_point i_lesser 0 n
echo ... check index - - - - - - - - - - - - - n i_lesser 0
echo ... check type - - - - - - - - - - - - - x_type i_equal '·'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal åæ
echo ... check base - - - - - - - - - - - - - x_base w_equal åæ
echo ... check change - - - - - - - - - - - - - x_change w_equal åæ
get ... check line SUFFIX__detail n s_equal n/a
COND verify a related suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "Ï" , &x_type , x_gregg , x_base , x_change , &x_point i_equal 2 n
echo ... check index - - - - - - - - - - - - - n i_equal 2
echo ... check type - - - - - - - - - - - - - x_type i_equal 'a'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal å·>·zæ
echo ... check base - - - - - - - - - - - - - x_base w_equal å´æ
echo ... check change - - - - - - - - - - - - - x_change w_equal åsæ
get ... check line SUFFIX__detail n s_equal 2 7 1åÏæ a · · 5 · 29 4å·>·zæ 1å´æ 1åsæ 1
COND attempt a non-existant prefix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "GOB" , &x_type , x_gregg , x_base , x_change , &x_point i_lesser 0 n
echo ... check index - - - - - - - - - - - - - n i_lesser 0
echo ... check type - - - - - - - - - - - - - x_type i_equal '·'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal åæ
echo ... check base - - - - - - - - - - - - - x_base w_equal åæ
echo ... check change - - - - - - - - - - - - - x_change w_equal åæ
get ... check line SUFFIX__detail n s_equal n/a
COND verify a compound suffix entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "+" , &x_type , x_gregg , x_base , x_change , &x_point i_equal 4 n
echo ... check index - - - - - - - - - - - - - n i_equal 4
echo ... check type - - - - - - - - - - - - - x_type i_equal '+'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal åæ
echo ... check base - - - - - - - - - - - - - x_base w_equal å´,Ï, æ
echo ... check change - - - - - - - - - - - - - x_change w_equal åæ
get ... check line SUFFIX__detail n s_equal 4 9 1å+æ + · · · · · 0åæ 5å´,Ï, æ 0åæ 1
COND attempt with various nulls - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "sh" , NULL , x_gregg , x_base , x_change , &x_point i_equal 73 n
get ... check line SUFFIX__detail n s_equal 73 122 2åshæ · · · 5 · 30 5å·>·shæ 0åæ 0åæ 1
exec call find SUFFIX_by_name "sh" , &x_type , NULL , x_base , x_change , &x_point i_equal 73 n
get ... check line SUFFIX__detail n s_equal 73 122 2åshæ · · · 5 · 30 5å·>·shæ 0åæ 0åæ 2
exec call find SUFFIX_by_name "sh" , &x_type , x_gregg , NULL , x_change , &x_point i_equal 73 n
get ... check line SUFFIX__detail n s_equal 73 122 2åshæ · · · 5 · 30 5å·>·shæ 0åæ 0åæ 3
exec call find SUFFIX_by_name "sh" , &x_type , x_gregg , x_base , NULL , &x_point i_equal 73 n
get ... check line SUFFIX__detail n s_equal 73 122 2åshæ · · · 5 · 30 5å·>·shæ 0åæ 0åæ 4
exec call find SUFFIX_by_name "sh" , &x_type , x_gregg , x_base , x_change , NULL i_equal 73 n
get ... check line SUFFIX__detail n s_equal 73 122 2åshæ · · · 5 · 30 5å·>·shæ 0åæ 0åæ 5
COND verify another further in - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "te" , &x_type , x_gregg , x_base , x_change , &x_point i_equal 7 n
echo ... check index - - - - - - - - - - - - - n i_equal 7
echo ... check type - - - - - - - - - - - - - x_type i_equal '·'
echo ... check gregg - - - - - - - - - - - - - x_gregg w_equal å·>·t·eæ
echo ... check base - - - - - - - - - - - - - x_base w_equal åæ
echo ... check change - - - - - - - - - - - - - x_change w_equal åæ
get ... check line SUFFIX__detail n s_equal 7 15 2åteæ · · · · · · 6å·>·t·eæ 0åæ 0åæ 1
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àè] (SUFFIX) verify parsing fields 0s field SUFFIX__field ((03.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char x_request [LEN_TERSE] = "";
local create working/return variable - - - - - - - - - - - - - char x_english [LEN_TITLE] = "";
REUSE -E- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND verify quick success - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "´) testing" , x_request , x_english i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal å´æ
echo ... check english - - - - - - - - - - - - - x_english w_equal åtestingæ
COND attempt with null request - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field NULL , x_request , x_english i_lesser 0
echo ... check request - - - - - - - - - - - - - x_request w_equal åæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åæ
COND verify a related suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "Ï) happening" , x_request , x_english i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal åÏæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åhappeningæ
COND attempt with empty and short requests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "" , x_request , x_english i_lesser 0
exec call find SUFFIX__field "·" , x_request , x_english i_lesser 0
exec call find SUFFIX__field "´" , x_request , x_english i_lesser 0
exec call find SUFFIX__field "´)" , x_request , x_english i_lesser 0
exec call find SUFFIX__field "´) " , x_request , x_english i_lesser 0
COND verify a compound entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "+) running" , x_request , x_english i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal å+æ
echo ... check english - - - - - - - - - - - - - x_english w_equal årunningæ
COND attempt with wrong separator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "Ï: happening" , x_request , x_english i_lesser 0
echo ... check request - - - - - - - - - - - - - x_request w_equal åæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åæ
COND verify leaving fields off - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "+) running" , NULL , x_english i_equal 0
echo ... check english - - - - - - - - - - - - - x_english w_equal årunningæ
exec call find SUFFIX__field "+) running" , x_request , NULL i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal å+æ
COND attempt a missing variation request - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field ") happening" , x_request , x_english i_lesser 0
echo ... check request - - - - - - - - - - - - - x_request w_equal åæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åæ
COND verify another compound entry - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "+F) hopeful" , x_request , x_english i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal å+Fæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åhopefulæ
COND verify one with a long change - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX__field "ole) metallurgy" , x_request , x_english i_equal 0
echo ... check request - - - - - - - - - - - - - x_request w_equal åoleæ
echo ... check english - - - - - - - - - - - - - x_english w_equal åmetallurgyæ
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àè] (SUFFIX) verify changing english words 0s english SUFFIX_english_change ((03.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char x_updated [LEN_TITLE] = "";
COND verify no change required - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call change SUFFIX_english_change "test" , "" , x_updated i_equal 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal test
COND verify simple addition - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call change SUFFIX_english_change "test" , "s" , x_updated i_equal 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal tests
COND attempt with missing elements - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call change SUFFIX_english_change NULL , "s" , x_updated i_lesser 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal
exec call change SUFFIX_english_change "test" , NULL , x_updated i_lesser 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal
exec call change SUFFIX_english_change "test" , "s" , NULL i_lesser 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal
COND verify a small change - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call change SUFFIX_english_change "litany" , "×ies" , x_updated i_equal 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal litanies
COND verify a small change - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call change SUFFIX_english_change "responsible" , "××ility" , x_updated i_equal 0
echo ... check update - - - - - - - - - - - - - x_updated s_equal responsibility
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Áì] (SUFFIX) verify adding single words 0s single SUFFIX__single ((03.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char x_recd [LEN_RECD] = "";
local create working/return variable - - - - - - - - - - - - - char x_english [LEN_TITLE] = "";
local create working/return variable - - - - - - - - - - - - - char x_gregg [LEN_TITLE] = "";
local create working/return variable - - - - - - - - - - - - - void *x_base = NULL;
local create working/return variable - - - - - - - - - - - - - void *x_prefix = NULL;
local create working/return variable - - - - - - - - - - - - - void *x_suffix = NULL;
REUSE -C- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -D- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -E- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND creat a base word for testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
code ... update recd - - - - - - - - - - - - - strcpy (x_recd, "test § · § t·e·z·t § v · · · · · · § · §");
exec call base DICT__base 2 , 23 , x_recd , x_english , x_gregg , &x_base i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 1 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 1
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ · ´
get ... check entry DICT__entry 1 s_equal n/a
get ... check entry DICT__entry 2 s_equal n/a
get ... check entry DICT__entry 3 s_equal n/a
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify adding a first suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec find suffix SUFFIX_by_name "´" , NULL , NULL , NULL , NULL , &x_suffix i_greater 0
exec call single SUFFIX__single x_base , NULL , x_suffix , "testing" , x_gregg i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 2 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 2
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 1 s_equal 1 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ · ´
get ... check entry DICT__entry 2 s_equal n/a
get ... check entry DICT__entry 3 s_equal n/a
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify adding another suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec find suffix SUFFIX_by_name "th" , NULL , NULL , NULL , NULL , &x_suffix i_greater 0
exec call single SUFFIX__single x_base , NULL , x_suffix , "testworthy" , x_gregg i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 3 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 3
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 1 s_equal 1 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ testworthy ´
get ... check entry DICT__entry 2 s_equal 2 10åtestworthyæ 12åt·e·z·t·>·thæ ´ test ´ · th ´ testing ´ · ´
get ... check entry DICT__entry 3 s_equal n/a
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify adding with a prefix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec find prefix PREFIX__by_name "re" , NULL , NULL , &x_prefix i_greater 0
exec find suffix SUFFIX_by_name "·" , NULL , NULL , NULL , NULL , &x_suffix i_equal 0
exec call single SUFFIX__single x_base , x_prefix , x_suffix , "retest" , "r·<·t·e·z·t" i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 4 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 4
get ... check entry DICT__entry 0 s_equal 0 6åretestæ 11år·<·t·e·z·tæ ´ test ´ re · ´ testworthy ´ · ´
get ... check entry DICT__entry 1 s_equal 1 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 2 s_equal 2 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ testworthy ´
get ... check entry DICT__entry 3 s_equal 3 10åtestworthyæ 12åt·e·z·t·>·thæ ´ test ´ · th ´ testing ´ retest ´
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify adding with a prefix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec find suffix SUFFIX_by_name "´" , NULL , NULL , NULL , NULL , &x_suffix i_greater 0
exec call single SUFFIX__single x_base , x_prefix , x_suffix , "retesting" , "r·<·t·e·z·t" i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 5 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 5
get ... check entry DICT__entry 0 s_equal 0 6åretestæ 11år·<·t·e·z·tæ ´ test ´ re · ´ testworthy ´ retesting ´
get ... check entry DICT__entry 1 s_equal 1 9åretestingæ 15år·<·t·e·z·t·>·´æ ´ test ´ re ´ ´ retest ´ · ´
get ... check entry DICT__entry 2 s_equal 2 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 3 s_equal 3 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ testworthy ´
get ... check entry DICT__entry 4 s_equal 4 10åtestworthyæ 12åt·e·z·t·>·thæ ´ test ´ · th ´ testing ´ retest ´
get ... check entry DICT__entry 5 s_equal n/a
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Áí] (SUFFIX) verify suffix driver overall 0s driver SUFFIX_driver ((03.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char x_recd [LEN_RECD] = "";
local create working/return variable - - - - - - - - - - - - - char x_english [LEN_TITLE] = "";
local create working/return variable - - - - - - - - - - - - - char x_gregg [LEN_TITLE] = "";
local create working/return variable - - - - - - - - - - - - - void *x_base = NULL;
local create working/return variable - - - - - - - - - - - - - void *x_prefix = NULL;
local create working/return variable - - - - - - - - - - - - - void *x_suffix = NULL;
REUSE -C- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -D- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -E- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND creat a base word for testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((03.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
code ... update recd - - - - - - - - - - - - - strcpy (x_recd, "test § · § t·e·z·t § v · · · · · · § · §");
exec call base DICT__base 2 , 23 , x_recd , x_english , x_gregg , &x_base i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 1 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 1
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ · ´
get ... check entry DICT__entry 1 s_equal n/a
get ... check entry DICT__entry 2 s_equal n/a
get ... check entry DICT__entry 3 s_equal n/a
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify adding a simple suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call driver SUFFIX_driver x_base , NULL , "´) testing" , x_gregg i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 2 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 2
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 1 s_equal 1 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ · ´
get ... check entry DICT__entry 2 s_equal n/a
get ... check entry DICT__entry 3 s_equal n/a
get ... check entry DICT__entry 4 s_equal n/a
get ... check entry DICT__entry 5 s_equal n/a
COND verify an add-on suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call driver SUFFIX_driver x_base , NULL , "R) tester" , x_gregg i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 4 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 4
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 1 s_equal 1 6åtesteræ 11åt·e·z·t·>·ræ ´ test ´ · r ´ testing ´ testers ´
get ... check entry DICT__entry 2 s_equal 2 7åtestersæ 13åt·e·z·t·>·r·zæ ´ test ´ · R ´ tester ´ · ´
get ... check entry DICT__entry 3 s_equal 3 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ tester ´
get ... check entry DICT__entry 4 s_equal n/a
COND verify an group suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call driver SUFFIX_driver x_base , NULL , "+B) testable" , x_gregg i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 10 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 10
get ... check entry DICT__entry 0 s_equal 0 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 1 s_equal 1 13åtestabilitiesæ 15åt·e·z·t·>·b·e·sæ ´ test ´ · bes ´ testability ´ · ´
get ... check entry DICT__entry 2 s_equal 2 11åtestabilityæ 13åt·e·z·t·>·b·eæ ´ test ´ · be ´ testableness ´ testabilities ´
get ... check entry DICT__entry 3 s_equal 3 8åtestableæ 11åt·e·z·t·>·bæ ´ test ´ · b ´ testers ´ testables ´
get ... check entry DICT__entry 4 s_equal 4 12åtestablenessæ 13åt·e·z·t·>·b·næ ´ test ´ · bn ´ testably ´ testability ´
get ... check entry DICT__entry 5 s_equal 5 9åtestablesæ 13åt·e·z·t·>·b·zæ ´ test ´ · B ´ testable ´ testably ´
get ... check entry DICT__entry 6 s_equal 6 8åtestablyæ 13åt·e·z·t·>·b·læ ´ test ´ · bl ´ testables ´ testableness ´
get ... check entry DICT__entry 7 s_equal 7 6åtesteræ 11åt·e·z·t·>·ræ ´ test ´ · r ´ testing ´ testers ´
get ... check entry DICT__entry 8 s_equal 8 7åtestersæ 13åt·e·z·t·>·r·zæ ´ test ´ · R ´ tester ´ testable ´
get ... check entry DICT__entry 9 s_equal 9 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ tester ´
get ... check entry DICT__entry 10 s_equal n/a
COND verify an group suffix - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call prep PREFIX_driver "re" , x_english , x_gregg , &x_prefix i_equal 0
exec call driver SUFFIX_driver x_base , x_prefix , "+) testing" , "r·<·t·e·z·t" i_equal 0
COND check current bases and dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
get ... check count BASE__count i_equal 1
get ... check entry BASE__entry 0 s_equal 0 4åtestæ 2/ 23 13 v · · · 0 · 0 7åt·e·z·tæ ¬¬¬¬¬¬¬
get ... check entry BASE__entry 1 s_equal n/a
get check the counts DICT__count i_equal 13
get ... check entry DICT__entry 0 s_equal 0 9åretestingæ 15år·<·t·e·z·t·>·´æ ´ test ´ re ´ ´ testabilities ´ retestings ´
get ... check entry DICT__entry 1 s_equal 1 11åretestinglyæ 17år·<·t·e·z·t·>·z·eæ ´ test ´ re ´ retestings ´ · ´
get ... check entry DICT__entry 2 s_equal 2 10åretestingsæ 15år·<·t·e·z·t·>·zæ ´ test ´ re Ï ´ retesting ´ retestingly ´
get ... check entry DICT__entry 3 s_equal 3 4åtestæ 7åt·e·z·tæ ´ test ´ · · ´ · ´ testing ´
get ... check entry DICT__entry 4 s_equal 4 13åtestabilitiesæ 15åt·e·z·t·>·b·e·sæ ´ test ´ · bes ´ testability ´ retesting ´
get ... check entry DICT__entry 5 s_equal 5 11åtestabilityæ 13åt·e·z·t·>·b·eæ ´ test ´ · be ´ testableness ´ testabilities ´
get ... check entry DICT__entry 6 s_equal 6 8åtestableæ 11åt·e·z·t·>·bæ ´ test ´ · b ´ testers ´ testables ´
get ... check entry DICT__entry 7 s_equal 7 12åtestablenessæ 13åt·e·z·t·>·b·næ ´ test ´ · bn ´ testably ´ testability ´
get ... check entry DICT__entry 8 s_equal 8 9åtestablesæ 13åt·e·z·t·>·b·zæ ´ test ´ · B ´ testable ´ testably ´
get ... check entry DICT__entry 9 s_equal 9 8åtestablyæ 13åt·e·z·t·>·b·læ ´ test ´ · bl ´ testables ´ testableness ´
get ... check entry DICT__entry 10 s_equal 10 6åtesteræ 11åt·e·z·t·>·ræ ´ test ´ · r ´ testing ´ testers ´
get ... check entry DICT__entry 11 s_equal 11 7åtestersæ 13åt·e·z·t·>·r·zæ ´ test ´ · R ´ tester ´ testable ´
get ... check entry DICT__entry 12 s_equal 12 7åtestingæ 11åt·e·z·t·>·´æ ´ test ´ · ´ ´ test ´ tester ´
get ... check entry DICT__entry 13 s_equal n/a
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.002)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Âð] (SUFFIX) verify writing and reading a database 0s database SUFFIX_write, SUFFIX_read ((02.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - char x_name [LEN_HUND] = "/tmp/suffix.db";
local create working/return variable - - - - - - - - - - - - - FILE *x_db = NULL;
local create working/return variable - - - - - - - - - - - - - short x_count = 0;
exec remove test file yURG_rm x_name i_equal 0
REUSE -E- add a standard suffix table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.008)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- verify the suffixes are loaded - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.008)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND verify writing the database - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call open SHARED_open x_name , 'W' , &x_db i_equal 0
exec call write SUFFIX_write x_db i_equal 0
exec call close SHARED_close &x_db i_equal 0
code ... save count - - - - - - - - - - - - - x_count = SUFFIX__count ();;
echo ... check count - - - - - - - - - - - - - x_count i_equal 141
COND purge all entries - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call purge SUFFIX__purge i_equal 0
get ... check count SUFFIX__count i_equal 0
get ... check line SUFFIX__detail 0 s_equal n/a
get ... check line SUFFIX__detail 1 s_equal n/a
get ... check line SUFFIX__detail 2 s_equal n/a
get ... check line SUFFIX__detail 3 s_equal n/a
COND verify reading the database - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call open SHARED_open x_name , 'R' , &x_db i_equal 0
exec call read SUFFIX_read x_db , x_count i_equal 0
exec call close SHARED_close &x_db i_equal 0
REUSE -F- verify the suffixes are loaded - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.008)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec remove test file yURG_rm x_name i_equal 0
exec stop testing PROG__unit_end i_equal 0
#23456789-12 123456789-123456789-123456789-12345 123456789-123456789-123456 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789- 123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789- 123456789-123456789-
#==(verb)=== ===========(description)=========== =====(function)=========== ========================(arguments)================================================================= ==(test)== ==========================(results)================================================================= ========(var)=======
SCRP [Àë] (SUFFIX) verify encoding and decoding suffix entries 0s encode SUFFIX_encode, SUFFIX_decode ((02.---)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND initialize the testing environment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec start testing PROG__unit_quiet i_equal 0
local create working/return variable - - - - - - - - - - - - - void *x_point = NULL;
local create working/return variable - - - - - - - - - - - - - short n = -1;
REUSE -E- add a standard suffix table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.008)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
REUSE -F- verify the suffixes are loaded - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((01.008)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
COND verify simple success - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "´" , NULL , NULL , NULL , NULL , &x_point i_equal 1 n
echo ... check return - - - - - - - - - - - - - n i_equal 1
echo ... check point - - - - - - - - - - - - - x_point p_exists 0
exec call encode SUFFIX_encode x_point i_equal [[ n ]]
exec call decode SUFFIX_decode n p_equal [[ x_point ]]
COND verify with a null - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call encode SUFFIX_encode NULL i_equal 0
exec call decode SUFFIX_decode 0 p_equal NULL
COND verify another - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.001)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec call find SUFFIX_by_name "be" , NULL , NULL , NULL , NULL , &x_point i_equal 40 n
echo ... check return - - - - - - - - - - - - - n i_equal 40
echo ... check point - - - - - - - - - - - - - x_point p_exists 0
exec call encode SUFFIX_encode x_point i_equal [[ n ]]
exec call decode SUFFIX_decode n p_equal [[ x_point ]]
COND complete testing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ((02.004)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exec stop testing PROG__unit_end i_equal 0