X-Git-Url: http://git.subgeniuskitty.com/vvhitespace/.git/blobdiff_plain/a805b721f73268be338edf99ed09f03ac842ef2e..096fa8e21328847a10e7414bbc24ace55be0907a:/stdlib_tests/vv_test.py diff --git a/stdlib_tests/vv_test.py b/stdlib_tests/vv_test.py index c1c2006..6cfa0bd 100755 --- a/stdlib_tests/vv_test.py +++ b/stdlib_tests/vv_test.py @@ -18,7 +18,17 @@ src_extension = '.pvvs' tests = [ # Format: ['filename_without_extension', 'string for stdin', 'string for expected stdout'] - ['0001_hello_world', '', 'Hello, world!\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'], ] for test in tests: @@ -29,6 +39,7 @@ for test in tests: print('\n' + test[0]) else: print('.', end='', flush=True) + os.remove(cpp_temp_file) os.remove(temp_file) print("")