mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* stdlib tests now check refc too * typo * fixes line numbers * disable cpp * do not touch
21 lines
315 B
Nim
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
|