From badba83d38371726bafba5870d5fb927eb453e41 Mon Sep 17 00:00:00 2001 From: Fabian Keller Date: Mon, 30 Oct 2017 17:21:44 +0100 Subject: Implementation of high/low for SomeReal (#6570) --- tests/system/tsystem_misc.nim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/system/tsystem_misc.nim (limited to 'tests/system') diff --git a/tests/system/tsystem_misc.nim b/tests/system/tsystem_misc.nim new file mode 100644 index 000000000..66b789ee9 --- /dev/null +++ b/tests/system/tsystem_misc.nim @@ -0,0 +1,18 @@ +discard """ + output:"" +""" + +# check high/low implementations +doAssert high(int) > low(int) +doAssert high(int8) > low(int8) +doAssert high(int16) > low(int16) +doAssert high(int32) > low(int32) +doAssert high(int64) > low(int64) +# doAssert high(uint) > low(uint) # reconsider depending on issue #6620 +doAssert high(uint8) > low(uint8) +doAssert high(uint16) > low(uint16) +doAssert high(uint32) > low(uint32) +# doAssert high(uint64) > low(uint64) # reconsider depending on issue #6620 +doAssert high(float) > low(float) +doAssert high(float32) > low(float32) +doAssert high(float64) > low(float64) -- cgit 1.4.1-2-gfad0