summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-07-12 15:31:03 +0800
committerGitHub <noreply@github.com>2020-07-12 03:31:03 -0400
commit9ec9a31f46697a615630fce3614e68e57d390a74 (patch)
tree92139c18d3ea77be36e933111a62cb26acc399fa /tests
parentd409694b02ae403501b23a94c21f60ad8edb7365 (diff)
downloadNim-9ec9a31f46697a615630fce3614e68e57d390a74.tar.gz
Fix #12759 (#14967)
* add testcase for #5926

* fix #12759
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tterminal_12759.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stdlib/tterminal_12759.nim b/tests/stdlib/tterminal_12759.nim
new file mode 100644
index 000000000..d6034ab57
--- /dev/null
+++ b/tests/stdlib/tterminal_12759.nim
@@ -0,0 +1,10 @@
+discard """
+  action: "compile"
+"""
+
+import terminal
+
+proc test() {.raises:[IOError, ValueError].} =
+  setBackgroundColor(stdout, bgRed)
+
+test()