summaryrefslogtreecommitdiff
path: root/test/io/console
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-07-28 19:25:52 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-07-28 19:25:52 +0900
commitd448ecc7b11274e2e5d924a42693788141fad753 (patch)
tree4a5c12058a44a26d2740f83d1937e061c7c9d44a /test/io/console
parent202ce7de01e051fca01c683833e4294d79ef87bb (diff)
Fix the missing brackets
Diffstat (limited to 'test/io/console')
-rw-r--r--test/io/console/test_io_console.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 342f979ec3..b5382555f5 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -395,7 +395,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
end
- if cc = ctrl["lnext"] && /freebsd/ !~ RUBY_PLATFORM
+ if (cc = ctrl["lnext"]) && /freebsd/ !~ RUBY_PLATFORM
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)