<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_pattern_matching.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[Bug #19195] Allow optional newlines before closing parenthesis</title>
<updated>2022-12-13T09:06:11+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-13T06:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=764da87ab02d30c578138bdb0f37e7c18f2d4371'/>
<id>764da87ab02d30c578138bdb0f37e7c18f2d4371</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unexpected "duplicated key name" error in paren-less one line pattern matching</title>
<updated>2022-09-09T05:00:27+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2022-09-09T05:00:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=db0e0dad1171456253ebd899e7e878823923d3d8'/>
<id>db0e0dad1171456253ebd899e7e878823923d3d8</id>
<content type='text'>
[Bug #18990]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #18990]
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18890] Suppress warnings and fix the message</title>
<updated>2022-07-08T02:31:51+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-07-08T02:20:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4a2662ae8b9f64346af82551fdd6756e7497e2f1'/>
<id>4a2662ae8b9f64346af82551fdd6756e7497e2f1</id>
<content type='text'>
```
test/ruby/test_parse.rb:1384: warning: assigned but unused variable - obj
test/ruby/test_pattern_matching.rb:1162: warning: unused literal ignored
test/ruby/test_pattern_matching.rb:1165: warning: unused literal ignored
test/ruby/test_pattern_matching.rb:1161: warning: assigned but unused variable - a
test/ruby/test_pattern_matching.rb:1164: warning: assigned but unused variable - b
```

And a newline should be significant here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
test/ruby/test_parse.rb:1384: warning: assigned but unused variable - obj
test/ruby/test_pattern_matching.rb:1162: warning: unused literal ignored
test/ruby/test_pattern_matching.rb:1165: warning: unused literal ignored
test/ruby/test_pattern_matching.rb:1161: warning: assigned but unused variable - a
test/ruby/test_pattern_matching.rb:1164: warning: assigned but unused variable - b
```

And a newline should be significant here.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18890] newline should be insignificant after pattern label</title>
<updated>2022-07-05T23:32:36+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-07-03T05:45:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eaeb130b11fefe91aaf61f294ea32af76dada74f'/>
<id>eaeb130b11fefe91aaf61f294ea32af76dada74f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Find pattern is no longer experimental [Feature #18585]</title>
<updated>2022-02-19T09:45:49+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2022-02-19T09:45:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=db6b23c76cbc7888cd9a9912790c2068703afdd0'/>
<id>db6b23c76cbc7888cd9a9912790c2068703afdd0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Disable did_you_mean in TestPatternMatching</title>
<updated>2021-10-23T01:22:14+00:00</updated>
<author>
<name>Yuki Nishijima</name>
<email>yk.nishijima@gmail.com</email>
</author>
<published>2021-10-23T01:22:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=93badf47704eece8b7a2b084f18a03a9083fb1a8'/>
<id>93badf47704eece8b7a2b084f18a03a9083fb1a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow omission of parentheses in one line pattern matching [Feature #16182]</title>
<updated>2021-08-19T08:07:58+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-08-19T08:03:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ecb6d6a4ef058b5598a7633c3921eeab08ce11c6'/>
<id>ecb6d6a4ef058b5598a7633c3921eeab08ce11c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Show verbose error messages when single pattern match fails</title>
<updated>2021-08-15T00:38:24+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-08-15T00:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4568ba071107a139b9f02fc17aa12f998181abf1'/>
<id>4568ba071107a139b9f02fc17aa12f998181abf1</id>
<content type='text'>
    [0] =&gt; [0, *, a]
    #=&gt; [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError)

Ignore test failures of typeprof caused by this change for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    [0] =&gt; [0, *, a]
    #=&gt; [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError)

Ignore test failures of typeprof caused by this change for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>One-line pattern matching is no longer experimental</title>
<updated>2021-07-17T02:13:52+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-07-17T02:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eed5e8f796ab18e2e0a436dab83e35504ae3ded0'/>
<id>eed5e8f796ab18e2e0a436dab83e35504ae3ded0</id>
<content type='text'>
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0
</pre>
</div>
</content>
</entry>
<entry>
<title>Add pattern matching pin support for instance/class/global variables</title>
<updated>2021-07-15T16:56:02+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-05-13T22:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fa87f72e1e84e2b55516be188f00434a683b924c'/>
<id>fa87f72e1e84e2b55516be188f00434a683b924c</id>
<content type='text'>
Pin matching for local variables and constants is already supported,
and it is fairly simple to add support for these variable types.

Note that pin matching for method calls is still not supported
without wrapping in parentheses (pin expressions).  I think that's
for the best as method calls are far more complex (arguments/blocks).

Implements [Feature #17724]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pin matching for local variables and constants is already supported,
and it is fairly simple to add support for these variable types.

Note that pin matching for method calls is still not supported
without wrapping in parentheses (pin expressions).  I think that's
for the best as method calls are far more complex (arguments/blocks).

Implements [Feature #17724]
</pre>
</div>
</content>
</entry>
</feed>
