Sha256: 54e52a276995a85865edadf386fda80014c0eb72b65ce228b3f766095ade4ea3
Contents?: true
Size: 970 Bytes
Versions: 1
Compression:
Stored size: 970 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb')) class GreaterThanExpressionTest < Test::Unit::TestCase include KoiReferenceParser test "should parse simple 'greater than' expression with integers" do tree = Parser.parse('test = 1 > 1') assert_expression(tree, ComparativeExpression, GreaterThanOperator) end test "should parse simple 'greater than' expression with floats" do tree = Parser.parse('test = 1.0 > 1.0') assert_expression(tree, ComparativeExpression, GreaterThanOperator) end test "should parse simple 'greater than' expression with strings" do tree = Parser.parse('test = "1" > "1"') assert_expression(tree, ComparativeExpression, GreaterThanOperator) end test "should parse simple 'greater than' expression with identifiers" do tree = Parser.parse('test = test1 > test2') assert_expression(tree, ComparativeExpression, GreaterThanOperator) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koi-reference-parser-0.0.3 | test/unit/expressions/greater_than_expression_test.rb |