diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-03-24 22:29:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 22:29:42 +0100 |
commit | 355985ac89dd13d5b317744b30842155d9321565 (patch) | |
tree | 921c35b4f7310b41fcd78ac9a44e8983b7c6727b /tests | |
parent | 5f5a92379fab59db0e7e3da5a9cec2a11be45ed8 (diff) | |
download | Nim-355985ac89dd13d5b317744b30842155d9321565.tar.gz |
custom integer literals bugfixes (#17499)
* custom integer literals bugfixes * make nimsuggest compile again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lexer/tunary_minus.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lexer/tunary_minus.nim b/tests/lexer/tunary_minus.nim index 0aa861d53..639911fcd 100644 --- a/tests/lexer/tunary_minus.nim +++ b/tests/lexer/tunary_minus.nim @@ -51,6 +51,9 @@ template main = doAssert x() == minusOne: "unable to handle negatives after semi-colon" + doAssert -0b111 == -7 + doAssert -0xff == -255 + block: # check when a minus (-) is an unary op doAssert -one == minusOne: "unable to a negative prior to identifier" |