* fix #16474 * more tests
This commit is contained in:
parent
1e859fa320
commit
1d615dfda7
2 changed files with 21 additions and 1 deletions
19
tests/stdlib/tunittestpass.nim
Normal file
19
tests/stdlib/tunittestpass.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
discard """
|
||||
targets: "c js"
|
||||
"""
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
block:
|
||||
check (type(1.0)) is float
|
||||
check type(1.0) is float
|
||||
check (typeof(1)) isnot float
|
||||
check typeof(1) isnot float
|
||||
|
||||
check 1.0 is float
|
||||
check 1 isnot float
|
||||
|
||||
type T = type(0.1)
|
||||
check T is float
|
||||
check T isnot int
|
||||
Loading…
Add table
Add a link
Reference in a new issue