diff options
author | cooldome <cdome@bk.ru> | 2020-03-25 20:36:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 21:36:22 +0100 |
commit | 764a81ca253b78d0faa75a24dffc8d111362974f (patch) | |
tree | 1238759a7266ab5dcf5a11b074c28084b33d68e5 /tests | |
parent | e1e062197ec13da4516642270e2057b0c26248cb (diff) | |
download | Nim-764a81ca253b78d0faa75a24dffc8d111362974f.tar.gz |
Continue bool conversion fixing (#13751)
* continue fixing #13744 * improve style * improve test Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/types/tcast1.nim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/types/tcast1.nim b/tests/types/tcast1.nim index 04596baff..ab375b8b2 100644 --- a/tests/types/tcast1.nim +++ b/tests/types/tcast1.nim @@ -52,5 +52,12 @@ proc test_conv_to_bool = static: + doAssert(bool(0) == false) + doAssert(bool(-1) == true) + doAssert(bool(2) == true) + doAssert(bool(NaN) == true) + doAssert(bool(0.0) == false) + doAssert(bool(-0.0) == false) test_conv_to_bool() -test_conv_to_bool() \ No newline at end of file +test_conv_to_bool() + |