mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-02 13:39:03 +00:00
Deploy to GitHub pages
This commit is contained in:
13
nimcache/runnableExamples/jsconsole_examples_2.nim
Normal file
13
nimcache/runnableExamples/jsconsole_examples_2.nim
Normal file
@@ -0,0 +1,13 @@
|
||||
#[
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user