ruby/test
Aaron Patterson abce8583e2 [ruby/yarp] Fix heredocs inside %W and %w lists
The problem was that we were treating heredoc bodies as part of the %W
list because we didn't push the scanning cursor past the heredoc after
lexing out the here doc.  To fix this, we changed the whitespace
scanning function to quit scanning when it reaches a newline but only in
the case that a heredoc is present.

Additionally, we need to prevent double counting newlines in the case of
a heredoc.  For example:

```ruby
%W(<<foo 123)
foo
```

The newline after the `)` is counted as part of scanning the heredoc, so
we added logic to prevent double counting the newline when scanning the
rest of the %W list.

https://github.com/ruby/yarp/commit/eb090d8126

Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>
2023-07-20 14:58:11 +00:00
..
-ext- [Feature #19757] Add new API `rb_data_define` 2023-07-13 17:55:55 +09:00
base64
benchmark
bigdecimal Move bsearch test with Bigdecimal under the test_bigdecimal.rb 2023-07-13 14:01:28 +09:00
cgi [ruby/cgi] Add TruffleRuby support and add it in CI 2023-05-29 19:33:38 +00:00
coverage More coverage tests & specs. (#7171) 2023-01-22 13:49:13 +13:00
csv [ruby/csv] Fix a bug that the same line is used multiple times 2023-06-28 16:37:10 +09:00
date [ruby/date] Implement Date#deconstruct_keys and DateTime#deconstruct_keys 2022-12-13 19:52:06 +00:00
did_you_mean [ruby/did_you_mean] Support the new message format of NameError in 2023-02-19 07:10:47 +00:00
digest [ruby/digest] Ignore test_ractor.rb on non-Ractor ruby 2022-07-21 11:45:48 +09:00
drb s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
dtrace Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
erb [ruby/erb] Fix line numbers after multi-line <%# 2022-11-29 04:56:03 +00:00
error_highlight [ruby/error_highlight] Support the new message format of NameError in Ruby 3.3 2023-02-19 10:29:56 +00:00
etc
excludes A file was missing in test/excludes for TestArraySubclass 2023-02-28 11:04:32 +09:00
fiber Wait for sleepr thread to finish not to leak 2023-07-13 13:12:52 +09:00
fiddle [ruby/fiddle] Add support for more "short" variants 2023-06-28 16:36:51 +09:00
fileutils [ruby/fileutils] Add mkdir_p to FileUtils.install 2023-02-10 03:37:39 +00:00
fixtures/fake_sorted_set_gem
io Remove `require 'io/wait'` where it's no longer necessary. (#6932) 2022-12-15 11:37:01 +13:00
irb [ruby/irb] Reduce boilerplate code in RubyLexTest 2023-07-18 15:18:58 +00:00
json [flori/json] Skip BigDecimal tests when it's missing to load 2023-07-18 12:25:55 +09:00
lib Revert "[ruby/rdoc] Update test libraries from ruby/ruby 2023-04-29" 2023-04-29 08:44:52 +09:00
logger [ruby/logger] Add Logger#with_level{...} for block-scoped log level. 2023-02-10 01:08:49 +00:00
mkmf mkmf: Add the extra option `--with-verbose` to enable verbose mode. (#7863) 2023-05-29 10:09:32 +02:00
monitor
net s/mjit/rjit/ 2023-03-06 23:44:01 -08:00
nkf
objspace Remove assumption about object order 2023-07-18 14:52:37 -04:00
open-uri Add :ssl_min_version and :ssl_max_version options 2022-10-12 10:36:51 +09:00
openssl [ruby/openssl] Add support for raw private/public keys 2023-07-12 23:40:58 +09:00
optparse [ruby/optparse] Add symbolize_names to getopts 2022-12-26 15:09:21 +09:00
ostruct [ruby/ostruct] Fix class and method as attribute names 2022-03-07 20:08:22 +09:00
pathname [ruby/pathname] Implement Pathname#lutime 2022-04-21 17:10:19 +09:00
psych [ruby/psych] Skip BigDecimal tests when it's missing to load 2023-07-18 02:55:47 +00:00
rdoc [ruby/rdoc] Use flat_map for better performance 2023-06-14 23:47:25 +00:00
reline [ruby/reline] Add assertion to auto_indent_proc's parameter, add 2023-07-19 13:31:17 +00:00
resolv [ruby/resolv] Do not compress domain name in SRV RDATA 2023-04-08 14:16:59 +00:00
rinda s/MJIT/RJIT/ 2023-03-06 23:44:01 -08:00
ripper Fix null pointer access in Ripper#initialize 2023-07-16 15:41:10 +09:00
ruby Add a corner case for `return` 2023-07-19 12:42:20 +09:00
rubygems [rubygems/rubygems] Clear `YAML` constant if it was undefined previously 2023-07-19 23:20:54 +00:00
snapshots/seattlerb [ruby/yarp] Fix heredocs inside %W and %w lists 2023-07-20 14:58:11 +00:00
socket Skip test_udp_server on s390x RHEL 7.1 2023-03-11 20:51:49 -08:00
stringio [ruby/stringio] [Bug #19389] Fix chomping with longer separator 2023-01-28 13:00:08 +00:00
strscan [ruby/strscan] Mask out this test on JRuby/Windows 2023-02-21 19:31:39 +09:00
syslog
uri [ruby/uri] Fix quadratic backtracking on invalid port number 2023-06-29 01:07:52 +00:00
win32ole [ruby/win32ole] Skip test failure with mswin platform 2023-03-29 04:00:22 +00:00
yaml Relax the timeout of a YAML test 2022-12-01 15:37:41 -08:00
yarp [ruby/yarp] Fix heredocs inside %W and %w lists 2023-07-20 14:58:11 +00:00
zlib [ruby/zlib] Fix the test broken in older versions 2023-01-09 09:58:43 +00:00
runner.rb Use the built bundled gems in test-all as well as test-bundled-gems 2022-12-09 02:20:16 +09:00
test_abbrev.rb
test_delegate.rb [ruby/delegate] Revert "Fix `DelegateClass` block "method redefined" warning" 2022-12-01 08:08:02 +00:00
test_extlibs.rb Removed racc/cparse checking 2023-06-08 17:25:38 +09:00
test_find.rb [ruby/find] Use omit instead of skip for test-unit 2022-01-11 21:40:51 +09:00
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb [ruby/ipaddr] Consider IPv4-mapped IPv6 addresses private if IPv4 address is private 2023-06-22 16:40:46 +00:00
test_mutex_m.rb [ruby/mutex_m] Avoid anonymous eval 2023-01-12 05:41:59 +00:00
test_observer.rb
test_open3.rb Removed to load jit_support.rb 2023-03-14 12:51:58 +09:00
test_pp.rb [ruby/pp] Remove patch added for Ruby 2.6/JRuby 9.3 2023-04-25 23:21:58 +00:00
test_prettyprint.rb
test_pstore.rb [ruby/pstore] Emphasize keys instead of roots, values instead of objects (https://github.com/ruby/pstore/pull/7) 2022-07-07 07:05:01 +09:00
test_pty.rb Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
test_rbconfig.rb mkconfig: Map `includedir` only for system ruby 2023-01-31 06:33:16 +09:00
test_securerandom.rb
test_set.rb [ruby/set] Set#merge does not take keyword arguments as a Hash 2023-02-24 11:48:08 +00:00
test_shellwords.rb
test_singleton.rb [ruby/singleton] Simplify implementation of `Singleton#instance`. 2023-06-05 04:29:37 +00:00
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb [ruby/time] Test for quadratic backtracking on invalid time 2023-03-30 10:44:37 +00:00
test_timeout.rb [ruby/timeout] Test that work is done in the same thread/fiber as 2023-07-03 09:26:43 +00:00
test_tmpdir.rb [ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe 2023-07-03 05:47:43 +00:00
test_trick.rb Suppress warnings 2023-06-26 19:06:46 +09:00
test_tsort.rb
test_unicode_normalize.rb Prefer to use File.readlines instead of IO.readlines 2023-02-27 18:49:18 +09:00
test_weakref.rb