Skip to content

Commit

Permalink
Merge pull request #1049 from ruby/use-serialization
Browse files Browse the repository at this point in the history
Use serialization for snapshots
  • Loading branch information
kddnewton authored Jun 22, 2023
2 parents 89a0020 + d2e9655 commit 1f2f88d
Show file tree
Hide file tree
Showing 905 changed files with 39 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ test/fixtures/whitequark/**/*.txt linguist-vendored
test/snapshots/**/*.txt linguist-generated

test/fixtures/**/*.txt -text
test/snapshots/**/*.txt diff=snapshot
20 changes: 20 additions & 0 deletions bin/deserialize
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$:.unshift(File.expand_path("../lib", __dir__))
require "yarp"
require "pp"

# We don't have the original source, so this is not going to be entirely
# accurate. But it's still better than nothing.
class Source
def byteslice(*)
""
end

def force_encoding(*)
self
end
end

puts PP.pp(YARP.load(Source.new, File.read(ARGV[0])), +"", 79)
9 changes: 8 additions & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ These test specific YARP implementation details like comments, errors, and regul

### Snapshot tests

Snapshot tests ensure that parsed output is equivalent to previous parsed output. There are many categorized examples of valid syntax within the `test/fixtures/` directory. When the test suite runs, it will parse all of this syntax, and compare it against corresponding files in the `test/snapshots/` directory. For example, `test/fixtures/strings.rb` has a corresponding `test/snapshots/strings.rb`.
Snapshot tests ensure that parsed output is equivalent to previous parsed output. There are many categorized examples of valid syntax within the `test/fixtures/` directory. When the test suite runs, it will parse all of this syntax, and compare it against corresponding files in the `test/snapshots/` directory. For example, `test/fixtures/strings.txt` has a corresponding `test/snapshots/strings.txt`.

If the parsed files do not match, it will raise an error. If there is not a corresponding file in the `test/snapshots/` directory, one will be created so that it exists for the next test run.

To get nicer diffs for snapshots, you should set up the `textconv` option in `git diff` to use `bin/deserialize`. This will deserialize the serialized tree and pretty-print it before diffing, which makes it much easier to see the changes. To do so, run:

```bash
git config diff.snapshot.textconv bin/deserialize
git config diff.snapshot.binary true
```

### Testing against repositories

To test the parser against a repository, you can run `FILEPATHS='/path/to/repository/**/*.rb' rake lex`. This will run the parser against every file matched by the glob pattern and check its generated tokens against those generated by ripper.
Expand Down
58 changes: 10 additions & 48 deletions test/parse_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
require "yarp_test_helper"

class ParseTest < Test::Unit::TestCase
# Because we're reading the snapshots from disk, we need to make sure that
# they're encoded as UTF-8. When certain settings are present this might not
# always be the case (e.g., LANG=C or -Eascii-8bit). So here we force the
# default external encoding for the duration of the test.
def setup
@previous_default_external = Encoding.default_external
ignore_warnings { Encoding.default_external = Encoding::UTF_8 }
end

def teardown
ignore_warnings { Encoding.default_external = @previous_default_external }
end

def test_Ruby_3_2_plus
assert_operator RUBY_VERSION, :>=, "3.2.0", "ParseTest requires Ruby 3.2+"
end
Expand All @@ -29,20 +16,6 @@ def test_empty_string
seattlerb/pct_w_heredoc_interp_nested.txt
]

# Because the filepath in SourceFileNodes is different from one maching to the
# next, PP.pp(sexp, +"", 79) can have different results: both the path itself
# and the line breaks based on the length of the path.
def normalize_printed(printed)
printed
.gsub(
/SourceFileNode \s*
\(\s* (\d+\.\.\.\d+) \s*\) \s*
\(\s* ("[^"]*") \s*\)
/mx,
'SourceFileNode(\1)(\2)')
.gsub(__dir__, "")
end

def find_source_file_node(node)
if node.is_a?(YARP::SourceFileNode)
node
Expand Down Expand Up @@ -78,36 +51,35 @@ def test_parse_takes_file_path
# that is invalid Ruby.
refute_nil Ripper.sexp_raw(source)

# Next, parse the source and print the value.
# Next, assert that there were no errors during parsing.
result = YARP.parse_file(filepath)
value = result.value
printed = normalize_printed(PP.pp(value, +"", 79))
assert_empty result.errors

# Next, assert that there were no errors during parsing.
assert_empty result.errors, value
# Next, parse the source and print the value.
serialized = YARP.dump(source, relative)

if File.exist?(snapshot)
normalized = normalize_printed(File.read(snapshot))
saved = File.binread(snapshot)

# If the snapshot file exists, but the printed value does not match the
# snapshot, then update the snapshot file.
if normalized != printed
File.write(snapshot, normalized)
if serialized != saved
File.write(snapshot, serialized)
warn("Updated snapshot at #{snapshot}.")
end

# If the snapshot file exists, then assert that the printed value
# matches the snapshot.
assert_equal(normalized, printed)
assert_equal(saved, serialized)
else
# If the snapshot file does not yet exist, then write it out now.
File.write(snapshot, printed)
File.write(snapshot, serialized)
warn("Created snapshot at #{snapshot}.")
end

# Next, assert that the value can be serialized and deserialized without
# changing the shape of the tree.
assert_equal_nodes(value, YARP.load(source, YARP.dump(source, filepath)))
assert_equal_nodes(result.value, YARP.load(source, YARP.dump(source, relative)))

# Next, assert that the newlines are in the expected places.
expected_newlines = [0]
Expand All @@ -127,14 +99,4 @@ def test_parse_takes_file_path
end
end
end

private

def ignore_warnings
previous_verbosity = $VERBOSE
$VERBOSE = nil
yield
ensure
$VERBOSE = previous_verbosity
end
end
Binary file modified test/snapshots/alias.txt
Binary file not shown.
Binary file modified test/snapshots/arithmetic.txt
Binary file not shown.
Binary file modified test/snapshots/arrays.txt
Binary file not shown.
Binary file modified test/snapshots/begin_ensure.txt
Binary file not shown.
Binary file modified test/snapshots/begin_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/blocks.txt
Binary file not shown.
Binary file modified test/snapshots/boolean_operators.txt
Binary file not shown.
Binary file modified test/snapshots/booleans.txt
Binary file not shown.
Binary file modified test/snapshots/break.txt
Binary file not shown.
Binary file modified test/snapshots/case.txt
Binary file not shown.
Binary file modified test/snapshots/classes.txt
Binary file not shown.
Binary file modified test/snapshots/comments.txt
Binary file not shown.
Binary file modified test/snapshots/constants.txt
Binary file not shown.
Binary file modified test/snapshots/dash_heredocs.txt
Binary file not shown.
Binary file modified test/snapshots/defined.txt
Binary file not shown.
Binary file modified test/snapshots/dos_endings.txt
Binary file not shown.
Binary file modified test/snapshots/embdoc_no_newline_at_end.txt
Binary file not shown.
Binary file modified test/snapshots/for.txt
Binary file not shown.
Binary file modified test/snapshots/global_variables.txt
Binary file not shown.
Binary file modified test/snapshots/hashes.txt
Binary file not shown.
Binary file modified test/snapshots/heredoc_with_trailing_newline.txt
Binary file not shown.
Binary file modified test/snapshots/heredocs_nested.txt
Binary file not shown.
Binary file modified test/snapshots/heredocs_with_ignored_newlines.txt
Binary file not shown.
Binary file modified test/snapshots/heredocs_with_ignored_newlines_and_non_empty.txt
Binary file not shown.
Binary file modified test/snapshots/if.txt
Binary file not shown.
Binary file modified test/snapshots/integer_operations.txt
Binary file not shown.
Binary file modified test/snapshots/keyword_method_names.txt
Binary file not shown.
Binary file modified test/snapshots/keywords.txt
Binary file not shown.
Binary file modified test/snapshots/lambda.txt
Binary file not shown.
Binary file modified test/snapshots/method_calls.txt
Binary file not shown.
Binary file modified test/snapshots/methods.txt
Binary file not shown.
Binary file modified test/snapshots/modules.txt
Binary file not shown.
Binary file modified test/snapshots/next.txt
Binary file not shown.
Binary file modified test/snapshots/nils.txt
Binary file not shown.
Binary file modified test/snapshots/non_alphanumeric_methods.txt
Binary file not shown.
Binary file modified test/snapshots/not.txt
Binary file not shown.
Binary file modified test/snapshots/numbers.txt
Binary file not shown.
Binary file modified test/snapshots/patterns.txt
Binary file not shown.
Binary file modified test/snapshots/procs.txt
Binary file not shown.
Binary file modified test/snapshots/range_begin_open_exclusive.txt
Binary file not shown.
Binary file modified test/snapshots/range_begin_open_inclusive.txt
Binary file not shown.
Binary file modified test/snapshots/range_end_open_exclusive.txt
Binary file not shown.
Binary file modified test/snapshots/range_end_open_inclusive.txt
Binary file not shown.
Binary file modified test/snapshots/ranges.txt
Binary file not shown.
Binary file modified test/snapshots/regex.txt
Binary file not shown.
Binary file modified test/snapshots/rescue.txt
Binary file not shown.
Binary file modified test/snapshots/return.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/BEGIN.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/__ENCODING__.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/alias_gvar_backref.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/alias_resword.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/and_multi.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/aref_args_assocs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/aref_args_lit_assocs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/args_kw_block.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/array_line_breaks.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/array_lits_trailing_calls.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/assoc__bare.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/assoc_label.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/attr_asgn_colon_id.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/attrasgn_array_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/attrasgn_array_lhs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/attrasgn_primary_dot_constant.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/backticks_interpolation_line.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bang_eq.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bdot2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bdot3.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/begin_ensure_no_bodies.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/begin_rescue_else_ensure_no_bodies.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/begin_rescue_ensure_no_bodies.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg__bare.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_kwsplat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_opt_arg_block.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_opt_splat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_optional.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_scope.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_scope2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_arg_splat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_kwargs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_no_kwargs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_opt1.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_opt2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_opt2_2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_args_opt3.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_break.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_call_defn_call_block_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_call_dot_op2_brace_block.txt
Binary file not shown.
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_call_operation_colon.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_call_operation_dot.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_call_paren_call_block_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_command_operation_colon.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_command_operation_dot.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_decomp_arg_splat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_decomp_splat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_kw.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_kw__required.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_kwarg_lvar.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_next.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_opt_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_opt_splat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_optarg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_paren_splat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_reg_optarg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_return.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_scope.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/block_splat_reg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug169.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug179.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug190.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug191.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug202.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug236.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug290.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_187.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_215.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_249.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_and.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_args__19.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_args_masgn.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_args_masgn2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_call_arglist_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_case_when_regexp.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_comma.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_cond_pct.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_hash_args.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_hash_args_trailing_comma.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_hash_interp_array.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_masgn_right.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_not_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/bug_op_asgn_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_and.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_arg_assoc.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_arg_kwsplat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_args_assoc_quoted.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_args_assoc_trailing_comma.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_args_command.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_array_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_array_block_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_array_lambda_block_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_array_lit_inline_hash.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_assoc.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_assoc_new.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_assoc_new_if_multiline.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_assoc_trailing_comma.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_bang_command_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_bang_squiggle.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_begin_call_block_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_block_arg_named.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_carat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_colon2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_colon_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_div.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_dot_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_env.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_eq3.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_gt.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_kwsplat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_leading_dots.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_leading_dots_comment.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_lt.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_lte.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_not.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_pipe.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_rshift.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_self_brackets.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_spaceship.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_stabby_do_end_with_block.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_stabby_with_braces_block.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_star.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_star2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_trailing_comma.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_trailing_dots.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/call_unary_bang.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_31.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_37.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_42.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_42_2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_47.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_67.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_86.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_86_2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_array_pat_const.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_array_pat_const2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_array_pat_paren_assign.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_const.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_else.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_find.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_find_array.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat_assign.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat_paren_true.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat_rest.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_hash_pat_rest_solo.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_if_unless_post_mod.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_multiple.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/case_in_or.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/class_comments.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/cond_unary_minus.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/const_2_op_asgn_or2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/const_3_op_asgn_or.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/const_op_asgn_and1.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/const_op_asgn_and2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/const_op_asgn_or.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dasgn_icky2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defined_eh_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_arg_asplat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_arg_forward_args.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_args_forward_args.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_comments.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_endless_command.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_endless_command_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_forward_args.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_env.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_kwarg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_kwsplat.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_lvar.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_no_parens.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_kwarg_val.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_no_kwargs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_oneliner.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_oneliner_eq2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_oneliner_noargs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_oneliner_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_opt_last_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_opt_reg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_opt_splat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_powarg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_reg_opt_reg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_splat_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defn_unary_not.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defns_reserved.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_comments.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_endless_command.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_endless_command_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_kwarg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_oneliner.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_oneliner_eq2.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/defs_oneliner_rescue.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/do_bug.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/do_lambda.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dot2_nil__26.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dot3_nil__26.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dstr_evstr.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dstr_evstr_empty_end.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dstr_lex_state.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dstr_str.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dsym_esc_to_sym.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/dsym_to_sym.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/eq_begin_line_numbers.txt
Binary file not shown.
Binary file not shown.
Binary file modified test/snapshots/seattlerb/evstr_evstr.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/evstr_str.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/expr_not_bang.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/f_kw.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/f_kw__required.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/flip2_env_lvar.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/float_with_if_modifier.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc__backslash_dos_format.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_backslash_nl.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_bad_hex_escape.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_bad_oct_escape.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_comma_arg.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_lineno.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly.txt
Binary file not shown.
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_blank_lines.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_empty.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_interp.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_no_indent.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_tabs.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_tabs_extra.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_squiggly_visually_blank_lines.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_trailing_slash_continued_call.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_unicode.txt
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_with_carriage_return_escapes.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_with_extra_carriage_returns.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/snapshots/seattlerb/heredoc_with_not_global_interpolation.txt
Binary file not shown.
Loading

0 comments on commit 1f2f88d

Please sign in to comment.