diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/integers.tm | 15 | ||||
| -rw-r--r-- | test/tables.tm | 4 |
2 files changed, 16 insertions, 3 deletions
diff --git a/test/integers.tm b/test/integers.tm index c20d08e6..2570521a 100644 --- a/test/integers.tm +++ b/test/integers.tm @@ -15,7 +15,7 @@ = 3_i16 >> 2 ^ 10 -= 1024 : Num64 += 1024 : Num >> 3 and 2 = 2 @@ -31,3 +31,16 @@ for x in 5 nums ++= "{x}," >> nums = "1,2,3,4,5," + +>> x := 123 +>> x:hex() += "0x7B" +>> x:octal() += "0o173" + +>> Int.random() +>> Int.min += -9223372036854775808 +>> Int.max += 9223372036854775807 + diff --git a/test/tables.tm b/test/tables.tm index 891e0614..7c614466 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -20,7 +20,7 @@ for k,v in t >> t.default = ?(readonly)999 >> t.fallback -= !{Str=>Int64} += !{Str=>Int} >> t.keys = ["one", "two"] @@ -40,7 +40,7 @@ for k,v in t >> #t2 = 1 >> t2.default -= !Int64 += !Int >> t2.fallback = ?(readonly){"one"=>1, "two"=>2; default=999} |
