summary refs log tree commit diff stats
path: root/tests/misc/tlowhigh.nim
blob: 61a7bfaed3ee3c82a5ec83fccba092874a9100b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
    action: run
"""

var x: range[-1'f32..1'f32]
doAssert x.low == -1'f32
doAssert x.high == 1'f32
doAssert x.type.low == -1'f32
doAssert x.type.high == 1'f32
var y: range[-1'f64..1'f64]
doAssert y.low == -1'f64
doAssert y.high == 1'f64
doAssert y.type.low == -1'f64
doAssert y.type.high == 1'f64