Use TracePoint.new{} in Hash.new() example
Otherwise Ruby 3.4 doesn't print expected `Hash::initialize`
This commit is contained in:
parent
a0ddcd21c4
commit
902b404c3f
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ rlJournalStart
|
|||
rlRun "$RUBY $RUBY_OPTS -e '1.0 + 9.0'" 0 "Running ruby interpreter: Float test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e '[1, 2, 3].push(4)'" 0 "Running ruby interpreter: Array test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e '(1..10).step(1)'" 0 "Running ruby interpreter: Range test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e 'Hash.new()'" 0 "Running ruby interpreter: Hash test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e 'TracePoint.new{}.enable; Hash.new()'" 0 "Running ruby interpreter: Hash test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e '\"abc\".slice!(\"c\")'" 0 "Running ruby interpreter: String test"
|
||||
rlRun "$RUBY $RUBY_OPTS -e 'TracePoint.new{}.enable; 5.times { printf \"Ruby!\n\" }'" 0 "Running ruby interpreter: Cycle and print test"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue