source: tests/io/.in/manipulatorsInput.txt @ 64c4b4d

Last change on this file since 64c4b4d was 8a33777, checked in by Michael Brooks <mlbrooks@…>, 8 months ago

Fix analysis error in string-input testing.

Add comments correlating .in file content with line of code that reads it.

This test's correctness expectation is bootstrapped from the actual behaviour of scanf.
A mistake in knowing "which character are we on at this point"
led to an inaccurate understanding of what scanf does on an edge case.
The test was showing that the CFA analogs behave the same as scanf.
But the test was not exercising the case that it suggested it was.
This issue is now fixed.

Old position, mistaken: case 14 begins on line ccccuuuucccc
Old position, corrected: cases 12/13 consume leading cccc; case 14 begins on uuuucccc
New positions: as commented in test .cfa

prior scanf understanding, mistaken: include skips unwanted characters before capturing
wanted characters, while exclude fails on unwanted characters

scanf understanding, corrected: include and exclude fail on unwanted characters

  • Property mode set to 100644
File size: 1.2 KB
Line 
1123456
21234567
312345678
4123456789
5abc
6cccccb
7xx
8abcxxx
9abcyyy
10aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwwwaaaaaaaawwwwwwww
11uuuuu
12get this line
13@# this line 1)-{}%
14"abc"
15'abc  '
16{ d d
17
18d }
19X               ZC44%Y
20abc
21cccccb
22xx
23abcxxx
24abcyyy
25aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwwwaaaaaaaawwwwwwww
26uuuuu
27get this line
28@# this line 1)-{}%
29"abc"
30'abc  '
31{ d d
32
33d }
34X               ZC44%Y
35ab
360xff 017 15-15
370xff 017 15-15
380xff 017 15-15
390xff 017 15-15
400xff 017 15-15
410xff 017 15-15
420xff 017 15-15
430xff 017 15-15
440xff 017 15-15
450xff 017 15-15
463.5 3.456E+2 -0x1.2p-3 0X1.23p3
473.5 3.456E+2 -0x1.2p-3 0X1.23p3
483.5 3.456E+2 -0x1.2p-3 0X1.23p3
493.5 3.5 3.456E+23.456E+2 -0x1.2p-3 3.5 0X1.23p3     3.5
503.5 3.5 3.456E+23.456E+2 -0x1.2p-3 3.5 0X1.23p3     3.5
513.5 3.5 3.456E+23.456E+2 -0x1.2p-3 3.5 0X1.23p3     3.5
5225 -25 42798
531402432282 1505850196993244515
54394749758663249135511342
5512935154696204706112391834394
56
57423859149128410414395372834994551
58
59
6013889016598639747063234935497057631587
61170141183460469231731687303715884105727
62340282366920938463463374607431768211455
63-340282366920938463463374607431768211455
64340282366920938463463374607431768211455999
651234567890123456789 -1234567890123456789
Note: See TracBrowser for help on using the repository browser.