diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-21 13:00:53 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-21 13:00:53 -0500 |
| commit | f868d02b08688c04509d1abda5af89a182033d88 (patch) | |
| tree | af64c48127e0edfebb348edabbccbcc402d2070b /test/tables.tm | |
| parent | 90573ba7a15bb47a11c1eb6f69ed04c01b69724d (diff) | |
Add `NULL` as a syntax for null values.
Diffstat (limited to 'test/tables.tm')
| -rw-r--r-- | test/tables.tm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/tables.tm b/test/tables.tm index 650e4e18..85ce5e01 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -3,11 +3,11 @@ func main(): = {"one":1, "two":2} >> t:get("one") - = 1? + = 1 : Int? >> t:get("two") - = 2? + = 2 : Int? >> t:get("???") - = !Int + = NULL : Int? >> t:get("one")! = 1 >> t:get("???") or -1 @@ -22,7 +22,7 @@ func main(): >> t.length = 2 >> t.fallback - = !{Text:Int} + = NULL : {Text:Int}? >> t.keys = ["one", "two"] @@ -33,16 +33,16 @@ func main(): = {"three":3; fallback={"one":1, "two":2}} >> t2:get("one") - = 1? + = 1 : Int? >> t2:get("three") - = 3? + = 3 : Int? >> t2:get("???") - = !Int + = NULL : Int? >> t2.length = 1 >> t2.fallback - = {"one":1, "two":2}? + = {"one":1, "two":2} : {Text:Int}? t2_str := "" for k,v in t2: |
