Skip to content

Commit

Permalink
Merge pull request #2078 from herwinw/spec_precedence
Browse files Browse the repository at this point in the history
Import language/precedence_spec
  • Loading branch information
herwinw committed Jun 7, 2024
2 parents 556e8c1 + f346b50 commit b80a291
Show file tree
Hide file tree
Showing 2 changed files with 463 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/language/fixtures/precedence.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module PrecedenceSpecs
class NonUnaryOpTest
def add_num(arg)
[1].collect { |i| arg + i +1 }
end
def sub_num(arg)
[1].collect { |i| arg + i -1 }
end
def add_str
%w[1].collect { |i| i +'1' }
end
def add_var
[1].collect { |i| i +i }
end
end
end
Loading

0 comments on commit b80a291

Please sign in to comment.