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