From f5c904c2a907013e22ff74bc3686952c5448d493 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 2 Mar 2020 15:49:03 +0900 Subject: Allow newlines inside braced pattern --- test/ruby/test_pattern_matching.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index a3b7dcfd18..f9217aa7da 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -1051,6 +1051,20 @@ END end end + assert_block do + case {a: 0} + in {a: 1 + } + false + in {a: + 2} + false + in {a: + } + true + end + end + assert_syntax_error(%q{ case _ in "a-b": -- cgit v1.2.3