diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-06 13:25:01 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-06 13:25:34 -0700 |
| commit | 810ae220bc2b1dfa07593b77f391e4da3b57a6bb (patch) | |
| tree | f5cdf811e673f4674097cb770b4f7d1fe932efe1 /tests/metaprogramming.nom | |
| parent | 2d88c68d712cb90f7e122465381899cd9f578e47 (diff) | |
Added list/dict metatables to make comparison and string representations
simpler. Also deleted Counters.
Diffstat (limited to 'tests/metaprogramming.nom')
| -rw-r--r-- | tests/metaprogramming.nom | 6 |
1 files changed, 2 insertions, 4 deletions
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." |
