summary refs log tree commit diff stats
path: root/tests/system/tostring.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-20 11:54:18 +0200
committerGitHub <noreply@github.com>2018-08-20 11:54:18 +0200
commit2def61606912625f3d20076e6686235996f25e62 (patch)
tree9b6de8742fa821b2e943b02fc48d81448bc91b8c /tests/system/tostring.nim
parentf87a91a3ec97a83a160984a029d55335a6beb978 (diff)
downloadNim-2def61606912625f3d20076e6686235996f25e62.tar.gz
exploit nil seqs for performance (#8688)
* changes $ for seqs to never produce 'nil'
* exploit the fact that empty seqs don't have to allocate in the code generator
Diffstat (limited to 'tests/system/tostring.nim')
-rw-r--r--tests/system/tostring.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/tostring.nim b/tests/system/tostring.nim
index 99299f203..42c07c0a4 100644
--- a/tests/system/tostring.nim
+++ b/tests/system/tostring.nim
@@ -24,7 +24,7 @@ doAssert "nan" == $(0.0/0.0)
 # nil tests
 # maybe a bit inconsistent in types
 var x: seq[string]
-doAssert "nil" == $(x)
+doAssert "@[]" == $(x)
 
 var y: string
 doAssert "" == $(y)