You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exclude:test_deconstruct_cache,"SyntaxError: /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1451: YARPBlockNodeTranslator does not know how to translate FindPatternNode at /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1451"
13
9
exclude:test_find_pattern,"SyntaxError: /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:806: YARPDefNodeTranslator does not know how to translate FindPatternNode at /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:806"
14
10
exclude:test_single_pattern_error_find_pattern,"SyntaxError: /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1623: YARPBlockNodeTranslator does not know how to translate FindPatternNode at /home/eregon/code/truffleruby-ws/truffleruby/test/mri/tests/ruby/test_pattern_matching.rb:1623"
bug18890=self.thendo# TruffleRuby: keep the test but do not check the warning # bug18890 = assert_warning(/(?:.*:[47]: warning: unused literal ignored\n){2}/) do
1161
1161
eval("#{<<~';;;'}")
1162
1162
proc do |i|
1163
1163
case i
@@ -1179,17 +1179,17 @@ def test_hash_pattern
1179
1179
end
1180
1180
end
1181
1181
1182
-
assert_syntax_error(%q{
1183
-
case _
1184
-
in a:, a:
1185
-
end
1186
-
},/duplicated key name/)
1182
+
# assert_syntax_error(%q{
1183
+
# case _
1184
+
# in a:, a:
1185
+
# end
1186
+
# }, /duplicated key name/)
1187
1187
1188
-
assert_syntax_error(%q{
1189
-
case _
1190
-
in a?:
1191
-
end
1192
-
},/key must be valid as local variables/)
1188
+
# assert_syntax_error(%q{
1189
+
# case _
1190
+
# in a?:
1191
+
# end
1192
+
# }, /key must be valid as local variables/)
1193
1193
1194
1194
assert_blockdo
1195
1195
case{a?: true}
@@ -1226,11 +1226,11 @@ def test_hash_pattern
1226
1226
end
1227
1227
end
1228
1228
1229
-
assert_syntax_error(%q{
1230
-
case _
1231
-
in "a-b":
1232
-
end
1233
-
},/key must be valid as local variables/)
1229
+
# assert_syntax_error(%q{
1230
+
# case _
1231
+
# in "a-b":
1232
+
# end
1233
+
# }, /key must be valid as local variables/)
1234
1234
1235
1235
assert_blockdo
1236
1236
case{"a-b": true}
@@ -1243,13 +1243,13 @@ def test_hash_pattern
1243
1243
case _
1244
1244
in "#{a}": a
1245
1245
end
1246
-
},/symbol literal with interpolation is not allowed/)
1246
+
},/symbol literal with interpolation is not allowed|expected a label as the key in the hash pattern/)
1247
1247
1248
1248
assert_syntax_error(%q{
1249
1249
case _
1250
1250
in "#{a}":
1251
1251
end
1252
-
},/symbol literal with interpolation is not allowed/)
1252
+
},/symbol literal with interpolation is not allowed|expected a label as the key in the hash pattern/)
0 commit comments