diff options
author | Steve Bennett <steveb@workware.net.au> | 2012-03-02 16:42:46 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2012-08-07 15:09:45 +1000 |
commit | b225e36dd50337cde65fd1acfb0fe11a69ffcb71 (patch) | |
tree | c8401e007982b5864852bca8897394bc23c18991 /tests/string.test | |
parent | 72a577998daa5edb99f6af1fc4820372e5563141 (diff) | |
download | jimtcl-b225e36dd50337cde65fd1acfb0fe11a69ffcb71.zip jimtcl-b225e36dd50337cde65fd1acfb0fe11a69ffcb71.tar.gz jimtcl-b225e36dd50337cde65fd1acfb0fe11a69ffcb71.tar.bz2 |
Remove octal literals with a leading 0 (TIP #114)
Now an octal literal needs to be explicitly indicated with a leading
0o or 0O, otherwise the number is treated as decimal.
This patch also adds support for binary literals.
e.g. 0b101 0B1101
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test index 9b9b9f4..5b0bbeb 100644 --- a/tests/string.test +++ b/tests/string.test @@ -336,7 +336,7 @@ test string-6.57 {string is integer, false} { } 0 test string-6.58 {string is integer, false on bad octal} { list [string is integer 036963] -} 0 +} 1 test string-6.59 {string is integer, false on bad hex} { list [string is integer 0X345XYZ] } 0 |