Skip to content
  • Shugo Maeda's avatar
    04311008
    Use loc to fix a failure of test_ast.rb · 04311008
    Shugo Maeda authored
    ```
        1) Failure:
      TestAst#test_ranges:test/fiber/scheduler.rb [/home/runner/work/ruby/ruby/src/test/ruby/test_ast.rb:122]:
      <[]> expected but was
      <[{:type=>:max_validation_error,
        :max=>
         #<RubyVM::AbstractSyntaxTree::Node::CodePosition:0x00007f80d630b598
          @column=20,
          @lineno=203>,
        :end_pos=>
         #<RubyVM::AbstractSyntaxTree::Node::CodePosition:0x00007f80d630b778
          @column=19,
          @lineno=203>,
        :node=>
         (BLOCK_PASS@203:15-203:19
            (ARGSPUSH@203:15-203:20 (SPLAT@203:16-203:19 (LVAR@203:16-203:19 :*))
               (HASH@203:16-203:19
                  (LIST@203:16-203:19 nil (LVAR@203:16-203:19 :**) nil)))
            (LVAR@203:16-203:19 :&))}]>.
    ```
    04311008
    Use loc to fix a failure of test_ast.rb
    Shugo Maeda authored
    ```
        1) Failure:
      TestAst#test_ranges:test/fiber/scheduler.rb [/home/runner/work/ruby/ruby/src/test/ruby/test_ast.rb:122]:
      <[]> expected but was
      <[{:type=>:max_validation_error,
        :max=>
         #<RubyVM::AbstractSyntaxTree::Node::CodePosition:0x00007f80d630b598
          @column=20,
          @lineno=203>,
        :end_pos=>
         #<RubyVM::AbstractSyntaxTree::Node::CodePosition:0x00007f80d630b778
          @column=19,
          @lineno=203>,
        :node=>
         (BLOCK_PASS@203:15-203:19
            (ARGSPUSH@203:15-203:20 (SPLAT@203:16-203:19 (LVAR@203:16-203:19 :*))
               (HASH@203:16-203:19
                  (LIST@203:16-203:19 nil (LVAR@203:16-203:19 :**) nil)))
            (LVAR@203:16-203:19 :&))}]>.
    ```
Loading