10 lost
= (scanf ("%2s", buf
) < 0);
11 lost
|= (buf
[0] != 'X' || buf
[1] != 'Y' || buf
[2] != '\0');
13 puts ("test of %2s failed.");
14 lost
|= (scanf (" ") < 0);
15 lost
|= (scanf ("%d", &i
) < 0);
18 puts ("test of %d failed.");
19 lost
|= (scanf ("%c", buf
) < 0);
20 lost
|= (buf
[0] != 'L');
22 puts ("test of %c failed.\n");
24 puts (lost
? "Test FAILED!" : "Test succeeded.");