X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/c6e2791fac7c7b29257588f99d350371d2e10627..37372ed0cccf20298fdefc4c3d1153eb58407e45:/stdlib_tests/vv_test.py diff --git a/stdlib_tests/vv_test.py b/stdlib_tests/vv_test.py index 4b51b01..b4f0cd0 100755 --- a/stdlib_tests/vv_test.py +++ b/stdlib_tests/vv_test.py @@ -18,8 +18,37 @@ src_extension = '.pvvs' tests = [ # Format: ['filename_without_extension', 'string for stdin', 'string for expected stdout'] - ['0001_dumpstack', '', 'TOS:\n1:\t+42\n0:\t+255\n'], + ['0001_dumpstack', '', 'TOS:\n2:\t+42\n1:\t+255\n'], ['0002_dumpheap', '', '32:\t+255\n33:\t+42\n'], + ['1001_stackrotate', '', 'TOS:\n14:\t+1\n13:\t+244\n12:\t+1\n11:\t+1\n10:\t+1\n9:\t+1\n8:\t+1\n7:\t+243\n6:\t+1\n5:\t+1\n4:\t+1\n3:\t+1\n2:\t+1\n1:\t+242\n'], + ['1002_stackrotatereverse', '', 'TOS:\n14:\t+1\n13:\t+244\n12:\t+1\n11:\t+1\n10:\t+1\n9:\t+1\n8:\t+1\n7:\t+1\n6:\t+1\n5:\t+1\n4:\t+1\n3:\t+1\n2:\t+1\n1:\t+1\n'], + ['1003_deepdup', '', 'TOS:\n15:\t+1\n14:\t+244\n13:\t+1\n12:\t+1\n11:\t+1\n10:\t+1\n9:\t+1\n8:\t+1\n7:\t+1\n6:\t+1\n5:\t+1\n4:\t+1\n3:\t+1\n2:\t+1\n1:\t+244\n'], + ['2001_spew', '', '32:\t+242\n33:\t+243\n34:\t+244\n'], + ['2002_slurp', '', 'TOS:\n3:\t+242\n2:\t+243\n1:\t+244\n'], + ['2003_memset', '', '32:\t+42\n33:\t+42\n'], + ['2004_memcpy', '', '34:\t+42\n35:\t+42\n'], + ['2005_memcmp', '', '+1'], + ['2006_memsrch', '', '+32'], + ['2007_memrand', '', ''], + ['3001_not', '', '-1+0-6148914691236517206+6148914691236517205'], + ['3002_lshift', '', '+1+2+4611686018427387904-9223372036854775808-9223372036854775808+0'], + ['3003_rshift', '', '+1+1+1-4611686018427387903-576460752303423478-1-1'], + ['3004_and', '', '+0+0+1+1+42'], + ['3005_or', '', '+0+1+1-1-1'], + ['3006_xor', '', '+0+1+0-2-1'], + ['4001_strlen', '', '+11'], + ['5001_abs', '', '+1+1+0+0'], + ['5002_random', '', ''], + ['5003_gcd', '', '+0+4+4+3+3+3'], + ['6001_printstackstring', '', 'test'], + ['6002_printheapstring', '', 'test'], + ['6003_printnumbersign', '', '+-'], + ['6004_printnumbermagnitude', '', '323209223372036854775808'], + ['6005_printstacknumber', '', '+32-32+0-9223372036854775808'], + ['6006_printf_staticstackstring', '', 'test'], + ['6007_printf_staticheapstring', '', 'test'], + ['6008_printf_escapedstackstring', '', '\\%\t\n'], + ['6009_printf_substitutedstackstring', '', 'Atest142+42'], ] for test in tests: