From 810ae220bc2b1dfa07593b77f391e4da3b57a6bb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 6 Jun 2018 13:25:01 -0700 Subject: Added list/dict metatables to make comparison and string representations simpler. Also deleted Counters. --- tests/metaprogramming.nom | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/metaprogramming.nom') diff --git a/tests/metaprogramming.nom b/tests/metaprogramming.nom index 26a750a..b9b97af 100644 --- a/tests/metaprogramming.nom +++ b/tests/metaprogramming.nom @@ -55,15 +55,13 @@ try: foo 99 assume ((\(5 + 5) as value) = 10) or barf "%tree as value failed." -assume (((\(foo %x) as nomsu) as text) = "foo %x") or barf "source code failed." - -assume ((repr [1,2]) = "{1, 2}") or barf "repr failed." +assume ("\(\(foo %x) as nomsu)" = "foo %x") or barf "source code failed." assume ((type of {}) = "table") or barf "type of failed." assume ((nomsu) = (=lua "nomsu")) or barf "nomsu failed" -assume (((\%x as lua identifier) as text) = "_x") or barf "converting to identifier failed." +assume ("\(\%x as lua identifier)" = "_x") or barf "converting to identifier failed." assume ((run "return 99") = 99) or barf "run % failed." -- cgit v1.2.3