summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_curses.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_curses.rb b/test/test_curses.rb
index d59f7dd354..9432c024bb 100644
--- a/test/test_curses.rb
+++ b/test/test_curses.rb
@@ -51,4 +51,10 @@ src
def test_getch_nocbreak
assert_raise(Timeout::Error) {run_curses("nocbreak; getch", "a")}
end
+ def test_getch_crmode
+ assert_equal("a", run_curses("crmode; getch", "a"))
+ end
+ def test_getch_nocrmode
+ assert_raise(Timeout::Error) {run_curses("nocrmode; getch", "a")}
+ end
end if defined? TestCurses and defined? PTY