source: tests/io/.expect/manipulatorsInput.x64.txt @ 8cffa4f

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

Support match-failure reporting for string input.

On failed match, assign the empty-string value to the target.
Prior handling did not modify the target,
which in context like char s[10]; sin | exclude("\n", s);,
left s uninitialized, and invalid for strlen, when the input's next character is a newline.
In this case, scanf offers the return value, the count of output arguments written,
to say, "I did not write to your buffer," a feature lost in the pipe abstraction.

Add tests to exercise such cases.

(Prior "leave uninitialized" treatment was discovered by surprise, while debugging a test program for an upcoming commit.)

  • Property mode set to 100644
File size: 1.0 KB
Line 
1pre1 "123456", canary ok
2pre2a "1234567", exception occurred, canary ok
3pre2b "89", canary ok
41 yyyyyyyyyyyyyyyyyyyy
52 abcxxx
63 abcxxx
74 aaaaaaaa
85 aaaaaaaa
96 aabbccbb
107 dddwww
118 dddwww
129 dddwww
1310 aaaaaaaa
1411 wwwwwwww
1512 wwwwwwww
1613 wwwwwwww
1714 rc=1, cccc
1815 rc=0, q
191 yyyyyyyyyyyyyyyyyyyy
202 abcxxx
213 abcxxx
224 aaaaaaaa
235 aaaaaaaa
246 aabbccbb
257 dddwww
268 dddwww
279 dddwww
2810 aaaaaaaa
2911 wwwwwwww
3012 wwwwwwww
3113 wwwwwwww
3214 cccc
3315
34a
35a
36-1
3715
3815
3915
40255
4115
4215
4315
44255
4515
4615
4715
48255
4915
5015
5115
52255
5315
5415
5515
56255
5715
5815
5915
60255
6115
6215
6315
64255
6515
6615
6715
68255
6915
7015
7115
72255
7315
7415
7515
763.5
77345.6
78345.6
79345.6
803.5
81345.6
82345.6
83345.6
843.5
85345.6
86345.6
87345.6
883.5+3.5i
89345.6+345.6i
90345.6+345.6i
91345.6+345.6i
923.5+3.5i
93345.6+345.6i
94345.6+345.6i
95345.6+345.6i
963.5+3.5i
97345.6+345.6i
98345.6+345.6i
99345.6+345.6i
10025
101-25
10242798
1031402432282
1041505850196993244515
105394749758663249135511342
10612935154696204706112391834394
107423859149128410414395372834994551
10813889016598639747063234935497057631587
109170141183460469231731687303715884105727
110-1
1111
112-1
1131234567890123456789
114-1234567890123456789
Note: See TracBrowser for help on using the repository browser.