mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
* fix #16474 * more tests
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user