summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pp.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb
index c5340a3e65..8345e5e987 100644
--- a/test/test_pp.rb
+++ b/test/test_pp.rb
@@ -257,7 +257,6 @@ class PPSingleLineTest < Test::Unit::TestCase
end
def test_hash_symbol_colon_key
- omit if RUBY_VERSION < "3.4."
no_quote = "{a: 1, a!: 1, a?: 1}"
unicode_quote = "{\u{3042}: 1}"
quote0 = '{"": 1}'
@@ -270,7 +269,7 @@ class PPSingleLineTest < Test::Unit::TestCase
assert_equal(quote1, PP.singleline_pp(eval(quote1), ''.dup))
assert_equal(quote2, PP.singleline_pp(eval(quote2), ''.dup))
assert_equal(quote3, PP.singleline_pp(eval(quote3), ''.dup))
- end
+ end if RUBY_VERSION >= "3.4."
def test_hash_in_array
omit if RUBY_ENGINE == "jruby"