<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_literal.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Prevent prism warnings in syntax exhaustive tests</title>
<updated>2024-09-17T03:44:07+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-09-15T00:50:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=76d927f88f9b64cf01912be41d5e88238a9e6ec6'/>
<id>76d927f88f9b64cf01912be41d5e88238a9e6ec6</id>
<content type='text'>
[Bug #20736]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20736]
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch the default parser from parse.y to Prism</title>
<updated>2024-09-12T17:43:04+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-08-28T20:35:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ea2af5782df63266577ba08a4ef4c30b6d63e564'/>
<id>ea2af5782df63266577ba08a4ef4c30b6d63e564</id>
<content type='text'>
This commit switches the default parser to Prism. There are a
couple of additional changes related to this that are a part of
this as well to make this happen.

* Switch the default parser in parse.h
* Remove the Prism-specific workflow and add a parse.y-specific
  workflow to CI so that it continues to be tested
* Update a few test exclusions since Prism has the correct
  behavior but parse.y doesn't per
  https://bugs.ruby-lang.org/issues/20504.
* Skips a couple of tests on RBS which are failing because they
  are using RubyVM::AbstractSyntaxTree.of.

Fixes [Feature #20564]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit switches the default parser to Prism. There are a
couple of additional changes related to this that are a part of
this as well to make this happen.

* Switch the default parser in parse.h
* Remove the Prism-specific workflow and add a parse.y-specific
  workflow to CI so that it continues to be tested
* Update a few test exclusions since Prism has the correct
  behavior but parse.y doesn't per
  https://bugs.ruby-lang.org/issues/20504.
* Skips a couple of tests on RBS which are failing because they
  are using RubyVM::AbstractSyntaxTree.of.

Fixes [Feature #20564]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a debug print for a random failure</title>
<updated>2024-05-27T09:16:28+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-05-27T09:16:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bc47ca5546a1287fbb052329075293c200d830b0'/>
<id>bc47ca5546a1287fbb052329075293c200d830b0</id>
<content type='text'>
```
  1) Error:
TestRubyLiteral#test_float:
ArgumentError: SyntaxError#path changed: "(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"-&gt;"(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"
```
https://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20240527T050036Z.fail.html.gz
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
  1) Error:
TestRubyLiteral#test_float:
ArgumentError: SyntaxError#path changed: "(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"-&gt;"(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"
```
https://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20240527T050036Z.fail.html.gz
</pre>
</div>
</content>
</entry>
<entry>
<title>Debug unexpectedly changed path</title>
<updated>2024-05-26T11:14:18+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-05-26T11:14:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bc50f2a3f1d166be3899f32b81bb78f666000592'/>
<id>bc50f2a3f1d166be3899f32b81bb78f666000592</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #20331] Simplify parser warnings for hash keys duplication and when clause duplication</title>
<updated>2024-04-01T23:26:58+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2024-03-23T23:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=799e854897856e431c03a5122252358e2c57aff2'/>
<id>799e854897856e431c03a5122252358e2c57aff2</id>
<content type='text'>
This commit simplifies warnings for hash keys duplication and when clause duplication,
based on the discussion of https://bugs.ruby-lang.org/issues/20331.
Warnings are reported only when strings are same to ohters.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit simplifies warnings for hash keys duplication and when clause duplication,
based on the discussion of https://bugs.ruby-lang.org/issues/20331.
Warnings are reported only when strings are same to ohters.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure test suite is compatible with --frozen-string-literal</title>
<updated>2024-03-14T16:56:15+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2024-03-13T11:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=09d8c99cdcb04fb6c6c8e61c9dea28927a3a0b46'/>
<id>09d8c99cdcb04fb6c6c8e61c9dea28927a3a0b46</id>
<content type='text'>
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix string value in hash literal being forced frozen</title>
<updated>2024-02-21T02:00:54+00:00</updated>
<author>
<name>Alan Wu</name>
<email>XrXr@users.noreply.github.com</email>
</author>
<published>2024-02-20T21:45:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2a6917b463fa4065f26aea44802e2e24cc494e4c'/>
<id>2a6917b463fa4065f26aea44802e2e24cc494e4c</id>
<content type='text'>
We should pass `false` for `hash_key` for value nodes. Credits to
`@kddnewton` for noticing and bisecting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should pass `false` for `hash_key` for value nodes. Credits to
`@kddnewton` for noticing and bisecting.
</pre>
</div>
</content>
</entry>
<entry>
<title>Warn duplication of `__ENCODING__` on the hash</title>
<updated>2024-02-12T23:40:14+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2024-02-12T04:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a345860d3d16b3bca74caf8ee1b405287873eed'/>
<id>8a345860d3d16b3bca74caf8ee1b405287873eed</id>
<content type='text'>
```
$ ruby -e 'h = { __ENCODING__ =&gt; 1, __ENCODING__ =&gt; 2 }'
-e:1: warning: key #&lt;Encoding:UTF-8&gt; is duplicated and overwritten on line 1
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
$ ruby -e 'h = { __ENCODING__ =&gt; 1, __ENCODING__ =&gt; 2 }'
-e:1: warning: key #&lt;Encoding:UTF-8&gt; is duplicated and overwritten on line 1
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Check hash key duplication for `__LINE__` and `__FILE__`</title>
<updated>2024-01-07T05:32:10+00:00</updated>
<author>
<name>yui-knk</name>
<email>spiketeika@gmail.com</email>
</author>
<published>2024-01-02T05:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9d3dcb86d1c95ceb75089595145bbfbc32a5c77c'/>
<id>9d3dcb86d1c95ceb75089595145bbfbc32a5c77c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `to_s` and `puts` in tests</title>
<updated>2021-12-16T06:12:12+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-12-16T06:07:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=69a7eaae389b49eb2a99c1c44c11b3d5004d186f'/>
<id>69a7eaae389b49eb2a99c1c44c11b3d5004d186f</id>
<content type='text'>
`to_s` has the explict specification while `inspect` is often
vague.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`to_s` has the explict specification while `inspect` is often
vague.
</pre>
</div>
</content>
</entry>
</feed>
