Skip to content

Commit 40b713d

Browse files
committed
Exclude out-of-scope test instead of omitting
1 parent 507eebf commit 40b713d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_pp.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ def test_hash
257257
end
258258

259259
def test_hash_symbol_colon_key
260-
omit if RUBY_VERSION < "3.4."
261260
no_quote = "{a: 1, a!: 1, a?: 1}"
262261
unicode_quote = "{\u{3042}: 1}"
263262
quote0 = '{"": 1}'
@@ -270,7 +269,7 @@ def test_hash_symbol_colon_key
270269
assert_equal(quote1, PP.singleline_pp(eval(quote1), ''.dup))
271270
assert_equal(quote2, PP.singleline_pp(eval(quote2), ''.dup))
272271
assert_equal(quote3, PP.singleline_pp(eval(quote3), ''.dup))
273-
end
272+
end if RUBY_VERSION >= "3.4."
274273

275274
def test_hash_in_array
276275
omit if RUBY_ENGINE == "jruby"

0 commit comments

Comments
 (0)