1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Ben c94025b630 [ruby/irb] Fix crashing when multiple open braces per line
https://github.com/ruby/irb/issues/55

If we had put multiple open braces on a line the with no closing brace
spaces_of_nest array keeps getting '0' added to it. This means that when
we pop off of this array we are saying that we should be in position zero
for the next line. This is an issue because we don't always want to be
in position 0 after a closing brace.

Example:
```
[[[
]
]
]
```
In the above example the 'spaces_of_nest' array looks like this after
the first line is entered: [0,0,0]. We really want to be indented 4
spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e.
we want it to be: [0,2,4].

We also saw this issue with a heredoc inside of an array.

```
[<<FOO]
hello
FOO
```

https://github.com/ruby/irb/commit/80c69c8272
2020-01-14 15:40:38 +09:00
..
-ext- Update tests for full keyword argument separation 2020-01-02 18:40:45 -08:00
base64
benchmark
bigdecimal More fixes for $SAFE/taint post merging 2019-11-18 01:00:25 +02:00
cgi Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
coverage compile.c: stop wrong peephole optimization when covearge is enabled 2019-12-04 10:40:54 +09:00
csv Remove unneeded exec bits from some files 2019-11-09 21:36:30 +09:00
date Fixed misspellings 2019-12-20 12:19:45 +09:00
dbm [ruby/dbm] Remove taint support 2019-10-26 07:03:33 +09:00
did_you_mean Port dd1dd86e6c 2019-12-23 00:47:41 -05:00
digest
drb Add GC guard 2020-01-08 12:26:48 +09:00
dtrace test/dtrace/helper.rb: Etc.getgrnam may return nil on some platforms 2019-10-06 15:23:00 +09:00
erb
etc
excludes Revert "Skip interruptible raw mode test on Travis-CI" 2019-12-18 00:08:21 +09:00
fiddle Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686) 2019-12-05 14:17:16 +09:00
fileutils Revert "[ruby/fileutils] Fix #install with "X" mode option" 2019-11-30 17:58:39 +09:00
gdbm
io [ruby/io-console] Enable only interrupt bits on intr: true 2019-12-29 16:26:22 +09:00
irb [ruby/irb] Fix crashing when multiple open braces per line 2020-01-14 15:40:38 +09:00
json Import json-2.3.0 from flori/json 2019-12-12 09:14:09 +09:00
lib test/lib/jit_support.rb: Update the regexp for icc 2019-12-05 23:46:42 +09:00
logger Fixed misspellings 2019-12-20 12:19:45 +09:00
matrix
misc
mkmf
monitor new_cond before mon_initialize 2019-12-04 13:36:41 +09:00
net Revert "lib/net/http/response.rb: support raw deflate correctly" 2019-12-16 23:39:10 +09:00
nkf
objspace
open-uri
openssl Get rid of false positive misspellings 2019-12-24 10:33:32 +09:00
optparse LoadError is not a subclass of StandardError 2019-11-29 11:25:23 +09:00
ostruct
pathname Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
psych [ruby/psych] Remove taint support 2019-11-12 10:35:47 +09:00
racc Fixed misspellings 2019-12-20 12:19:45 +09:00
rdoc [ruby/rdoc] Support newline in the middle of constant definition 2019-12-24 07:58:53 +09:00
readline text/readline/test_readline.rb - fix skip on Reline (#2743) 2019-12-31 00:29:58 -08:00
reline Support history-size in .inputrc correctly 2020-01-06 21:50:48 +09:00
resolv MinGW on Actions (#2791) 2019-12-30 23:19:31 -08:00
rinda Stop pool threads in test/rinda too 2019-12-09 13:46:23 +09:00
ripper Warn also numbered parameter like parameters 2019-12-20 01:25:34 +09:00
ruby Simplify obj2ubits checks 2020-01-13 13:58:23 -08:00
rubygems Update tests for full keyword argument separation 2020-01-02 18:40:45 -08:00
sdbm
socket Test interfaces include localhost 2019-12-06 16:03:16 +09:00
stringio [ruby/stringio] Remove taint support 2019-10-31 16:24:02 +09:00
strscan Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
syslog Honor Syslog::Logger#level overrides 2019-09-26 15:01:44 -07:00
uri Check for invalid hex escapes in URI#query= 2019-10-08 07:30:55 -07:00
webrick [ruby/webrick] Check the feature by itself, instead of the version number 2019-11-30 17:52:05 +09:00
win32ole Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
yaml
zlib [ruby/zlib] Fix setting mtime to zero in GzipWriter 2019-10-31 22:23:58 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb Call initialize_clone with freeze: false if clone called with freeze: false 2020-01-03 20:13:09 -08:00
test_extlibs.rb
test_find.rb
test_forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb Make prettyprint’s cycle detection aware of Delegator instances 2019-12-16 23:43:49 +09:00
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Call initialize_clone with freeze: false if clone called with freeze: false 2020-01-03 20:13:09 -08:00
test_shellwords.rb Do not escape + in Shellwords.escape 2019-09-27 07:43:32 -07:00
test_singleton.rb
test_syslog.rb test/test_syslog.rb (test_log): skipped on Android 2019-10-11 21:13:52 +09:00
test_tempfile.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_time.rb Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime 2019-11-21 03:32:20 +02:00
test_timeout.rb
test_tmpdir.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_tracer.rb Use realpath to try to fix failures with symlinks 2019-11-23 11:41:27 +09:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb