summary refs log tree commit diff stats
path: root/tests/stdlib/tunittestpass.nim
blob: d8de277b7126c6be95cb399fae961b7c389e40f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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