diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-07-12 15:31:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 03:31:03 -0400 |
commit | 9ec9a31f46697a615630fce3614e68e57d390a74 (patch) | |
tree | 92139c18d3ea77be36e933111a62cb26acc399fa /tests | |
parent | d409694b02ae403501b23a94c21f60ad8edb7365 (diff) | |
download | Nim-9ec9a31f46697a615630fce3614e68e57d390a74.tar.gz |
Fix #12759 (#14967)
* add testcase for #5926 * fix #12759
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tterminal_12759.nim | 10 |
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() |