Sha256: 9c7a8633c13755581946888ec3508bc9a8a77ec8a0b3b538bf6682d970dd6a26
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb')) class StatementTest < Test::Unit::TestCase include KoiReferenceParser test "should parse statments on separate lines as separate" do tree = Parser.parse("test = 1\ntest = 1") assert_kind_of Block, tree assert_kind_of Statement, tree.elements[0] assert_kind_of Statement, tree.elements[1] end test "should parse statements on same line separated by ';' as separate" do tree = Parser.parse("test = 1;test = 1") assert_kind_of Block, tree assert_kind_of Statement, tree.elements[0] assert_kind_of Statement, tree.elements[1] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koi-reference-parser-0.0.1 | test/parser/unit/statement_test.rb |