xref: /netbsd-src/tests/lib/libcurses/tests/mvscanw (revision ddde04b66b2972b220f1c171565e831976693c5f)
1# XXX
2# For this test, only one string or 32-bit integer are supported as
3# conversion specifiers at the moment.
4include start
5input "testing 1 2 3\n"
6call2 OK "testing" mvscanw 3 5 "%s"
7input "testing 1 2 3\n"
8call2 OK "test" mvscanw 3 5 "%4s"
9input "50 12\n"
10call2 OK "50" mvscanw 3 5 "%d"
11input "aa bb 50 12\n"
12# expect ERR because input has alpha and scanw wants integer
13call2 ERR "ERR" mvscanw 3 5 "%d"
14