Files
Nim/tests/stdlib/tunittestpass.nim
ringabout 4fa86422c0 stdlib tests now check refc too (#21664)
* stdlib tests now check refc too

* typo

* fixes line numbers

* disable cpp

* do not touch
2023-04-21 15:37:58 +02:00

21 lines
315 B
Nim

discard """
matrix: "--mm:refc; --mm:orc"
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