Sha256: bfcc705e14287bcd588505225a90ec6b0e92d3299aaaf938669ae6218611e255
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
def assert_expression(tree, expression_type, operator) assert_kind_of Block, tree assert_kind_of Statement, tree.elements.first assert_kind_of Assignment, tree.elements.first.elements.last assert_kind_of Identifier, tree.elements.first.elements.last.elements[0] assert_kind_of AssignmentOperator, tree.elements.first.elements.last.elements[1] assert_kind_of Expression, tree.elements.first.elements.last.elements[2] assert_kind_of expression_type, tree.elements.first.elements.last.elements[2].elements.first assert_equal 3, tree.elements.first.elements.last.elements[2].elements.first.elements.size assert_kind_of operator, tree.elements.first.elements.last.elements[2].elements.first.elements[1] unless(operator.nil?) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koi-reference-parser-0.0.3 | test/helpers/assert_expression.rb |