diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 16:44:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-03 16:44:45 -0500 |
| commit | c5f315e338adb09bcfc4c192ccefedfaf88202fe (patch) | |
| tree | 2bbabc5d7d079cb0496522592d97cb75deee50bb /test/integers.tm | |
| parent | 74c86176cb2bc68f7a3c7b9c65d93184c8b7d959 (diff) | |
Num methods
Diffstat (limited to 'test/integers.tm')
| -rw-r--r-- | test/integers.tm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integers.tm b/test/integers.tm index 2570521a..a3ec7fe2 100644 --- a/test/integers.tm +++ b/test/integers.tm @@ -33,6 +33,8 @@ for x in 5 = "1,2,3,4,5," >> x := 123 +>> x:format(digits=5) += "00123" >> x:hex() = "0x7B" >> x:octal() @@ -44,3 +46,10 @@ for x in 5 >> Int.max = 9223372036854775807 + +>> 123_i32:hex() += "0x7B" +>> 123_i16:hex() += "0x7B" +>> 123_i8:hex() += "0x7B" |
