ruby/test
Kevin Newton 3eb42054d9 [ruby/prism] Pass Unicode escapes on to onigmo
When we encounter an invalid unicode escape within a regular
expression, we now pass that error on to Onigmo as if it didn't
exist in the parser (which matches the upstream parser's behavior).

We do this because there are tests that specify that you are
allowed to have invalid Unicode escapes if they are within the
context of a regular expression comment for a regular expression
in extended mode. That looks like:

    /# \u /x

Note that this _only_ applies to Unicode escapes (as opposed to
applying to hex or meta/control escapes as well). Importantly it
also only applies if the regular expression is terminated. An
unterminated regular expression will still get error handling done
in the parser. That would look like:

    /# \u

that would result in the same error handling we have today.

https://github.com/ruby/prism/commit/fb98034806
2024-08-23 19:18:14 +00:00
..
-ext- Reset the counter for two consecutive runs 2024-07-31 10:59:51 +09:00
.excludes
.excludes-prism Revert pending `EVENT_RETURN` tests 2024-07-17 14:06:11 -04:00
benchmark
cgi
coverage [PRISM] Modify test_coverage to take prism into account 2024-04-26 12:25:45 -04:00
date [ruby/date] Remove the unintentional ability to parse `Symbol` 2024-02-21 16:04:52 +00:00
did_you_mean Do not include a backtick in error messages and backtraces 2024-02-15 18:42:31 +09:00
digest
dtrace
erb
error_highlight [ruby/error_highlight] Make test_COLON2_5 conditional again 2024-07-12 06:26:53 +00:00
etc
fiber Enumerator should use a non-blocking fiber, change `rb_fiber_new` to be non-blocking by default. (#10481) 2024-04-08 00:49:01 +12:00
fiddle [ruby/fiddle] Pick ruby/ruby changes for 2024-07-02 18:33:39 +09:00
fileutils Skip some tests which don't work under permissionless containers 2024-08-23 09:34:41 +10:00
io [ruby/io-console] Load the built extension library in noctty tests 2024-04-10 09:10:50 +00:00
irb [ruby/irb] Remove Ruby version checks 2024-08-04 14:53:51 +00:00
json [flori/json] Make OpenStruct support as optional 2024-01-31 14:56:00 +09:00
lib [PRISM] Refactor parser support into its own module 2024-07-18 21:15:54 -04:00
logger [ruby/logger] Add reraise_write_errors keyword argument to Logger and LogDevice 2024-07-11 15:25:17 +00:00
mkmf Extend the timeout of test_try_ldflag_invalid_opt and test_try_cppflag_invalid_opt 2024-06-24 18:14:34 +09:00
monitor
net Wait for server threads to finish 2024-07-30 07:33:43 +08:00
objspace [Feature #20470] Split GC into gc_impl.c 2024-07-03 09:03:40 -04:00
open-uri Removed needless block arguments 2024-07-17 17:37:57 +09:00
openssl [ruby/openssl] Remove test_ed25519_not_approved_on_fips. 2024-08-16 17:10:23 +00:00
optparse [ruby/optparse] Fix parsing array arguments with `:into` option 2024-08-05 02:28:12 +00:00
ostruct
pathname
prism [ruby/prism] Pass Unicode escapes on to onigmo 2024-08-23 19:18:14 +00:00
psych [ruby/psych] Convert tabs to spaces in test/psych/test_yaml.rb 2024-08-09 19:35:29 +00:00
rdoc [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00
reline [ruby/reline] Accept colon-style hash in test assertion 2024-08-05 15:53:45 +00:00
resolv Suppress warning for fd leak 2024-08-22 10:38:43 +09:00
ripper Fix leak of token_info when Ripper#warn jumps 2024-08-07 09:14:14 -04:00
ruby Uncomment test accidentally commented in 1656350 2024-08-22 19:47:40 -04:00
rubygems [rubygems/rubygems] Fix `gem uninstall <name>:<version>` failing on shadowed default gems 2024-08-21 12:07:10 +00:00
set
socket Revise 9ec342e07d 2024-02-26 13:12:05 +09:00
stringio [ruby/stringio] Remove special handling of chilled strings 2024-05-30 15:11:48 +00:00
strscan [ruby/strscan] Omit tests for `#scan_byte` and `#peek_byte` on 2024-03-27 12:17:01 +09:00
uri [ruby/uri] Use URI::RFC2396_PARSER explicitly in URI 2024-08-08 02:09:27 +00:00
win32 Test for win32/registry.rb 2024-05-03 14:47:18 +09:00
win32ole [ruby/win32ole] Test constants for the backward compatibility 2024-03-23 10:34:35 +00:00
yaml [ruby/yaml] Make PStore support as optional 2024-01-31 05:56:39 +00:00
zlib [ruby/zlib] Avoid allocating intermediary strings when read/readpartial are passed an outbuf 2024-05-14 21:44:34 +00:00
runner.rb
test_bundled_gems.rb bundled_gems.rb: Add a fast path 2024-07-22 10:33:07 +02:00
test_delegate.rb [ruby/delegate] test: remove needless mu_pp 2024-04-30 23:31:26 +00:00
test_extlibs.rb Extract syslog 2024-01-22 15:59:40 +09:00
test_find.rb
test_forwardable.rb [ruby/forwardable] Relax regexp for Ruby 3.3 or before 2024-02-16 02:12:08 +00:00
test_ipaddr.rb [ruby/ipaddr] Add IPAddr.cidr to return ip address in cidr notation 2024-04-18 10:27:19 +09:00
test_open3.rb
test_pp.rb [ruby/pp] Extract pp_hash_pair 2024-02-21 16:45:01 +00:00
test_prettyprint.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_shellwords.rb
test_singleton.rb
test_tempfile.rb [ruby/tempfile] File.new(fileno, mode: mode, path: path) is provided from Ruby 3.2 2024-08-23 06:07:40 +00:00
test_time.rb
test_timeout.rb Make test_nested_timeouts less flaky 2024-05-28 12:49:46 +09:00
test_tmpdir.rb
test_trick.rb Ensure test suite is compatible with --frozen-string-literal 2024-03-14 17:56:15 +01:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb