diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-04-11 14:30:13 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-04-11 15:47:30 -0400 |
| commit | 842f151d79824cd09d1a9020bc392265b33df79e (patch) | |
| tree | ac13102e590ed646c633432e52444885dd7a84fc /spec | |
| parent | c5e661b1d720cf5452c3fd5264b73063ca9c4515 (diff) | |
[PRISM] Enable more passing tests
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/prism.mspec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/prism.mspec b/spec/prism.mspec index 7279c1e9b1..efa0d93123 100644 --- a/spec/prism.mspec +++ b/spec/prism.mspec @@ -1,5 +1,9 @@ # frozen_string_literal: true +# This is turned off because when we run with --parser=prism we explicitly turn +# off experimental warnings to make sure the output is consistent. +MSpec.register(:exclude, "Warning.[] returns default values for categories :deprecated and :experimental") + ## Language MSpec.register(:exclude, "The defined? keyword when called with a method name in a void context warns about the void context when parsing it") MSpec.register(:exclude, "Hash literal expands an '**{}' or '**obj' element with the last key/value pair taking precedence") @@ -7,7 +11,6 @@ MSpec.register(:exclude, "Hash literal expands an '**{}' and warns when finding MSpec.register(:exclude, "Hash literal merges multiple nested '**obj' in Hash literals") MSpec.register(:exclude, "Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes") MSpec.register(:exclude, "Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes and 'key: value' syntax used") -MSpec.register(:exclude, "The next statement in a method is invalid and raises a SyntaxError") MSpec.register(:exclude, "Regexps with encoding modifiers supports /e (EUC encoding) with interpolation") MSpec.register(:exclude, "Regexps with encoding modifiers supports /e (EUC encoding) with interpolation /o") MSpec.register(:exclude, "Regexps with encoding modifiers preserves EUC-JP as /e encoding through interpolation") @@ -25,11 +28,8 @@ MSpec.register(:exclude, "IO.popen with a leading Array argument accepts an IO m MSpec.register(:exclude, "TracePoint#eval_script is the evald source code") MSpec.register(:exclude, "TracePoint#event returns the type of event") MSpec.register(:exclude, "TracePoint#inspect returns a String showing the event, method, path and line for a :return event") -MSpec.register(:exclude, "TracePoint#inspect returns a String showing the event, path and line for a :class event") MSpec.register(:exclude, "TracePoint.new includes multiple events when multiple event names are passed as params") MSpec.register(:exclude, "TracePoint#path equals \"(eval at __FILE__:__LINE__)\" inside an eval for :end event") -MSpec.register(:exclude, "TracePoint#self return the class object from a class event") -MSpec.register(:exclude, "Warning.[] returns default values for categories :deprecated and :experimental") ## Library MSpec.register(:exclude, "Coverage.peek_result returns the result so far") |
