Commit graph

15017 commits

Author SHA1 Message Date
Shugo Maeda
c60dbcd1c5
Allow value omission in Hash literals
`{x:, y:}` is a syntax sugar of `{x: x, y: y}`.
2021-09-11 18:52:25 +09:00
Nobuyoshi Nakada
0fbde94b27 [ruby/rdoc] Convert upper case copyright and registered marks
3bca7dc093
2021-09-11 17:03:52 +09:00
Nobuyoshi Nakada
bc0ea95ca8 [ruby/rdoc] Convert tick double quote in character entity references
6ed889aac9
2021-09-11 17:03:38 +09:00
Nobuyoshi Nakada
6944163415 [ruby/rdoc] Convert a backtick to an open single quote
82eaefbae4
2021-09-11 17:03:33 +09:00
Nobuyoshi Nakada
c5c0f5c652 [ruby/rdoc] Convert single quotes in character entity references
As well as double quotes.

https://github.com/ruby/rdoc/pull/824#discussion_r683173389

09002bdab5
2021-09-11 17:03:26 +09:00
Hiroshi SHIBATA
2bc85766c0
[ruby/net-http] Use omit instead of skip for test-unit
5bb14fd3bc
2021-09-11 10:25:34 +09:00
Hiroshi SHIBATA
151a1cd45e Fixed inconsistent require order for assertions and core_assertions 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1e18f4e60f Use Test::Unit::Runner instead of MiniTest::Unit 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
78ec066347 Use CoreAssertions instead of Assertions 2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
871e7b5f55 Use MiniTest 2021-09-11 08:48:03 +09:00
aycabta
3e038ab1c7 [ruby/irb] Ignore invalid 3 colons in completion
5e29e3e39c
2021-09-11 04:41:20 +09:00
aycabta
5dc753df47 [ruby/reline] Move #pointer from DialogRenderInfo to Dialog
92dbac0bff
2021-09-10 11:38:54 +09:00
aycabta
4c896cda37 [ruby/reline] Fix scroll range of a script for tests
6ceebe52bc
2021-09-10 10:57:16 +09:00
aycabta
e5c40c3dc9 [ruby/reline] Add tests that column of dialog with scrollbar is moved without garbase
45c70d6222
2021-09-10 09:06:48 +09:00
aycabta
199a681d71 [ruby/reline] Add a test that text under dialog appears
0b63bd56ce
2021-09-10 09:06:39 +09:00
aycabta
a22c04a1d9 [ruby/reline] Add a test that autocomplete doesn't crash after 2nd line
f682c74975
2021-09-10 09:06:29 +09:00
aycabta
d1498f93ab [ruby/reline] Add a test that dialog doesn't crash when callback returns nil
2c6f604b98
2021-09-10 09:06:19 +09:00
aycabta
b00522608f [ruby/reline] Add a test that autocompletion returns to the original text
d80880e56b
2021-09-10 09:06:08 +09:00
aycabta
90f0f22fcc [ruby/reline] Use single quotes to match others in the file
a17de2d6d8
2021-09-10 09:05:56 +09:00
aycabta
9066496aa3 [ruby/reline] Add a test that autocomplete dialog doesn't crash when empty
9c0080c27f
2021-09-10 09:05:45 +09:00
aycabta
8e6ed5d75b [ruby/reline] Add a test for when completion target is wrapped
25a94d70c3
2021-09-10 09:05:35 +09:00
aycabta
f51ce20c6a [ruby/reline] Fix complete proc of a script for tests
ee1c1adddc
2021-09-10 09:05:14 +09:00
aycabta
963e2c33b6 [ruby/reline] Add a test that dialog may appear at the top if cursor at bottom edge
6c2ab47958
2021-09-10 09:05:05 +09:00
aycabta
c00643c18a [ruby/reline] Add a test for dialog at right edge
db642169b9
2021-09-10 09:04:56 +09:00
aycabta
c25511ef46 [ruby/reline] Add a test for dialog with scroll key
99640abf75
2021-09-10 09:04:47 +09:00
aycabta
c94735fa24 [ruby/reline] Add tests for autocomplete with scrollbar
29634cbc93
2021-09-10 09:04:41 +09:00
aycabta
364e646317 [ruby/reline] Add a test for simple dialog
d70f507e2c
2021-09-10 09:04:36 +09:00
aycabta
4475953378 [ruby/reline] Add a simple test for autocomplete
11f83b2f4b
2021-09-10 09:04:30 +09:00
Nobuyoshi Nakada
7983fb9658 [ruby/irb] Tests may not execute in the source directory
f4aaa70cfc
2021-09-10 08:34:51 +09:00
aycabta
62cecea073 Find irb command path in test 2021-09-10 07:43:01 +09:00
aycabta
7cc298a484 [ruby/irb] Pend on truffleruby
fbf52d9608
2021-09-10 06:37:07 +09:00
aycabta
3bd596efa4 [ruby/irb] Remove an unused variable
5bf1cb2078
2021-09-10 06:37:07 +09:00
Marc-Andre Lafortune
3503c94af5 [ruby/irb] Avoid loading files' local variables [Bug #17623]
b12f0cb8e2
2021-09-10 06:37:06 +09:00
aycabta
d86c1a3161 [ruby/irb] Add yamatanooroti test for symbol with backtick
4d32f0e88e
2021-09-10 04:59:25 +09:00
aycabta
f085a6fb69 [ruby/irb] Support symbol with backtick
0aa2425883
2021-09-10 04:59:17 +09:00
Yusuke Endoh
141db4f383 test/psych/test_scalar_scanner.rb: Prevent a warning
```
[ 4696/20990] TestAst#test_ranges:test/psych/test_scalar_scanner.rb(none):138: warning: ambiguous first argument; put parentheses or a space even after `-' operator
```
20210909T123007Z.log.html.gz
2021-09-09 23:35:03 +09:00
Peter Zhu
5d81554281 [Bug #18154] Fix memory leak in String#initialize
String#initialize can leak memory when called on a string that is marked
with STR_NOFREE because it does not unset the STR_NOFREE flag.
2021-09-08 10:20:12 -04:00
aycabta
580f340c33 [ruby/irb] Use "csv" for test
The "csv" doesn't conflict with other stdlib names in any Ruby processing
system.

49203a1c83
2021-09-08 05:24:04 +09:00
aycabta
bc24af0f35 [ruby/irb] Show lib name first because it's the most common use case
74d635758b
2021-09-08 05:23:56 +09:00
aycabta
95089ddaf4 [ruby/reline] Move only one line when render a line and then go to the next line
8a966cd962
2021-09-08 01:11:13 +09:00
Nobuyoshi Nakada
26153667f9 [ruby/pathname] Prefer omit over skip
abd0b91044
2021-09-07 13:02:56 +09:00
Hiroshi SHIBATA
afd7d1672f
Removed obsoleted comment 2021-09-06 19:36:04 +09:00
Hiroshi SHIBATA
ecfbf1df33
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration 2021-09-06 19:33:56 +09:00
Hiroshi SHIBATA
940a19e4b3
Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration 2021-09-06 18:34:15 +09:00
Hiroshi SHIBATA
13dd07e397 Removed redundant tests 2021-09-06 13:11:29 +09:00
Hiroshi SHIBATA
a68a1b0b7d Removed MiniTest::Assertion from test/rdoc 2021-09-06 13:11:29 +09:00
aycabta
540eea39dd [ruby/reline] Add a test for key bindings with Reline::Key
cadbd576c7
2021-09-06 08:10:08 +09:00
aycabta
83a0807b3b [ruby/reline] Add a test for oneshot key bindings
42ebea82b7
2021-09-06 08:10:02 +09:00
aycabta
14cc611133 [ruby/reline] Rename a temporary test name to appropriate one
26ebecde5c
2021-09-06 08:09:57 +09:00
aycabta
168bd4f356 [ruby/reline] Add a test for Reline::Unicode#take_range
af7953ff93
2021-09-06 08:09:50 +09:00