From adde5ba6b06e12f74c7746f93883ad009cfb00b8 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Thu, 5 Nov 2020 21:04:24 +0800 Subject: document #15618 (#15810) * document #15618 * Update lib/pure/unittest.nim * Update lib/pure/unittest.nim Co-authored-by: Juan Carlos * Update lib/pure/unittest.nim Co-authored-by: Andreas Rumpf Co-authored-by: Juan Carlos --- lib/pure/unittest.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/pure/unittest.nim') diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim index 0536956e9..617b8ab78 100644 --- a/lib/pure/unittest.nim +++ b/lib/pure/unittest.nim @@ -92,6 +92,15 @@ ## discard v[4] ## ## echo "suite teardown: run once after the tests" +## +## Limitations/Bugs +## ================ +## Since `check` will rewrite some programs for +## supporting checkpoints (namely assigns expressions to variables). +## Some type conversions are not supported. +## For example `check 4.0 == 2 + 2` won't work. But `doAssert 4.0 == 2 + 2` works. +## Make sure both sides of the operator (such as `==`, `>=` and so on) have the same type. +## import std/private/since import std/exitprocs -- cgit 1.4.1-2-gfad0