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