mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
14 lines
491 B
Nim
14 lines
491 B
Nim
#[
|
|
autogenerated by docgen
|
|
loc: /home/runner/work/Nim/Nim/lib/js/jsconsole.nim(101, 5)
|
|
rdoccmd:
|
|
]#
|
|
import std/assertions
|
|
import "/home/runner/work/Nim/Nim/lib/js/jsconsole.nim"
|
|
{.line: ("/home/runner/work/Nim/Nim/lib/js/jsconsole.nim", 101, 5).}:
|
|
console.jsAssert(42 == 42) # OK
|
|
console.jsAssert(42 != 42) # Fail, prints "Assertion failed" and continues
|
|
console.jsAssert('`' == '\n' and '\t' == '\0') # Message correctly formatted
|
|
assert 42 == 42 # Normal assertions keep working
|
|
|