summary refs log tree commit diff stats
path: root/tests/whenstmt
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-24 01:28:51 +0800
committerGitHub <noreply@github.com>2022-08-23 19:28:51 +0200
commit3dbf2ac9469bdaaf876f902242a883fe1847adf0 (patch)
tree50f81be04f7d218be0c29d4803662a38df925237 /tests/whenstmt
parent1182216381cdd17b75e16133ce2c79084dd3d3f9 (diff)
downloadNim-3dbf2ac9469bdaaf876f902242a883fe1847adf0.tar.gz
remove echo statements in tests (part 1) (#20178)
* remove echo statements

* Update tests/vm/triangle_array.nim

* Update tests/vm/tyaytypedesc.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Diffstat (limited to 'tests/whenstmt')
-rw-r--r--tests/whenstmt/twhen_macro.nim8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/whenstmt/twhen_macro.nim b/tests/whenstmt/twhen_macro.nim
index b5168144e..deb1dddc9 100644
--- a/tests/whenstmt/twhen_macro.nim
+++ b/tests/whenstmt/twhen_macro.nim
@@ -1,11 +1,5 @@
 import macros
 
-discard """
-  output: '''
-when - test
-'''
-"""
-
 # test that when stmt works from within a macro
 
 macro output(s: string, xs: varargs[untyped]): auto =
@@ -21,4 +15,4 @@ macro output(s: string, xs: varargs[untyped]): auto =
       # should never get here so this should not break
       more.broken.xs
 
-echo output("test")
\ No newline at end of file
+doAssert output("test") == "when - test"
\ No newline at end of file