summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorVindaar <basti90@gmail.com>2018-10-18 14:47:47 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-18 14:47:47 +0200
commit82a1576263c3c64f7a171710c747acc5fa62a52c (patch)
tree734fdac3e335457c0eaacfb5021bf48ca45c86ba /tests/stdlib
parent1fe949b9d5f3b5128fe44fd566c434648e880eb1 (diff)
downloadNim-82a1576263c3c64f7a171710c747acc5fa62a52c.tar.gz
fix #9394 by replacing `fmt` with `strutils.%` (#9417)
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/t9394.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stdlib/t9394.nim b/tests/stdlib/t9394.nim
new file mode 100644
index 000000000..3c0123eb5
--- /dev/null
+++ b/tests/stdlib/t9394.nim
@@ -0,0 +1,7 @@
+import terminal, colors
+
+let codeFg = ansiForegroundColorCode(colAliceBlue)
+let codeBg = ansiBackgroundColorCode(colAliceBlue)
+
+doAssert codeFg == "\27[38;2;240;248;255m"
+doAssert codeBg == "\27[48;2;240;248;255m"