mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 03:03:57 +00:00
js: improve tests + some docs (#16727)
* js: improve tests * _ * _ * _ * fixup
This commit is contained in:
@@ -36,3 +36,9 @@ for i in big"0" ..< big"5":
|
||||
doAssert i is JsBigInt
|
||||
list.add i
|
||||
doAssert list == @[big"0", big"1", big"2", big"3", big"4"]
|
||||
|
||||
block:
|
||||
let b = big"2"
|
||||
doAssert -b ** big"3" == big"-8"
|
||||
doAssert -b ** big"2" == big"4" # not -4 because of precedence
|
||||
doAssert -big"3" == big"-3"
|
||||
|
||||
Reference in New Issue
Block a user