summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorjlp765 <jlp765@gmail.com>2016-11-01 13:41:31 +1000
committerjlp765 <jlp765@gmail.com>2016-11-01 13:41:31 +1000
commit55b28f86e1fe0b7dc151f93692a987b4a48e98ac (patch)
treef21b99d26c714284d2cb557e01ae623b98681049 /tests/stdlib
parent0cb5adb49496d971742bd4fdfe98ac3db4dedb94 (diff)
downloadNim-55b28f86e1fe0b7dc151f93692a987b4a48e98ac.tar.gz
add test: echo a seq with a nil value
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tnilecho.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stdlib/tnilecho.nim b/tests/stdlib/tnilecho.nim
new file mode 100644
index 000000000..147b5e492
--- /dev/null
+++ b/tests/stdlib/tnilecho.nim
@@ -0,0 +1,2 @@
+var x = @["1", nil, "3"]
+doAssert $x == "@[1, nil, 3]"