From 3cee99808d629c0ec493955ce8ea019d1f8a637b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 21 May 2019 10:29:34 +0900 Subject: [EXPERIMENTAL] Expression with modifier `in` [Feature #15865] --- test/ruby/test_pattern_matching.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/ruby/test_pattern_matching.rb') diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb index 1f209b0081..cb87529ccf 100644 --- a/test/ruby/test_pattern_matching.rb +++ b/test/ruby/test_pattern_matching.rb @@ -1180,6 +1180,13 @@ END end end end + + ################################################################ + + def test_modifier_in + assert_equal true, (1 in a) + assert_equal 1, a + end end END_of_GUARD $VERBOSE = verbose -- cgit v1.2.3