From 60d04456549c25d8125c85c899e877e0d0b5a13c Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Tue, 30 Jul 2019 21:27:08 -0700 Subject: [PATCH] Fixing a comment in memsrch test and adding a dummy test for memrand. Heap tests now complete. --- stdlib_tests/2006_memsrch.pvvs | 2 +- stdlib_tests/2007_memrand.pvvs | 10 ++++++++++ stdlib_tests/vv_test.py | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 stdlib_tests/2007_memrand.pvvs diff --git a/stdlib_tests/2006_memsrch.pvvs b/stdlib_tests/2006_memsrch.pvvs index df8575b..406f936 100644 --- a/stdlib_tests/2006_memsrch.pvvs +++ b/stdlib_tests/2006_memsrch.pvvs @@ -4,7 +4,7 @@ SSSTSSSSSN | PUSH 32 (address) SSSTN | PUSH 1 (count) NSTTTSSSN | JSR > 11000 (memset) -@ This comparison should return true. +@ This search should locate the word at address 32. SSSTSTSTSN | PUSH 42 (pattern) SSSTSSSN | PUSH 8 (count) SSSSTTTSSN | PUSH 28 (address) diff --git a/stdlib_tests/2007_memrand.pvvs b/stdlib_tests/2007_memrand.pvvs new file mode 100644 index 0000000..8c51d72 --- /dev/null +++ b/stdlib_tests/2007_memrand.pvvs @@ -0,0 +1,10 @@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +@ +@ This test intentionally blank. +@ +@ If there comes a day when the tests are extended beyond testing basic +@ functionality, include memrand in the new tests. +@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + +NNN | Die diff --git a/stdlib_tests/vv_test.py b/stdlib_tests/vv_test.py index 6cfa0bd..381a732 100755 --- a/stdlib_tests/vv_test.py +++ b/stdlib_tests/vv_test.py @@ -29,6 +29,7 @@ tests = [ ['2004_memcpy', '', '34:\t+42\n35:\t+42\n'], ['2005_memcmp', '', '+1'], ['2006_memsrch', '', '+32'], + ['2007_memrand', '', ''], ] for test in tests: -- 2.20.1