Nimsuggest now defines the backends symbol (#21083)
* Add testcase * Define the backend symbol * Remove unneeded whitespace
This commit is contained in:
parent
4388636010
commit
b0a850adbf
3 changed files with 13 additions and 2 deletions
7
nimsuggest/tests/t20440.nim
Normal file
7
nimsuggest/tests/t20440.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
when not defined(js):
|
||||
{.fatal: "Crash".}
|
||||
echo 4
|
||||
|
||||
discard """
|
||||
$nimsuggest --v3 --tester $file
|
||||
"""
|
||||
1
nimsuggest/tests/t20440.nims
Normal file
1
nimsuggest/tests/t20440.nims
Normal file
|
|
@ -0,0 +1 @@
|
|||
switch("backend", "js")
|
||||
Loading…
Add table
Add a link
Reference in a new issue