diff options
Diffstat (limited to 'tests/misc/tlowhigh.nim')
-rw-r--r-- | tests/misc/tlowhigh.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/tlowhigh.nim b/tests/misc/tlowhigh.nim new file mode 100644 index 000000000..61a7bfaed --- /dev/null +++ b/tests/misc/tlowhigh.nim @@ -0,0 +1,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 \ No newline at end of file |