Sha256: 8fcb8aade9eb8f64207b92450b40f9e71a97a8af75cdb110297b879474d6875d
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb')) class FunctionCallTest < Test::Unit::TestCase include KoiReferenceParser test "should parse all lowercase identifier" do tree = Parser.parse('test = "test"') assert_identifier(tree) end test "should parse identifier with trailing numeral" do tree = Parser.parse('test1 = "test"') assert_identifier(tree) end test "should parse identifier with leading capital letter" do tree = Parser.parse('Test = "test"') assert_identifier(tree) end test "should parse identifier that contains an underscore" do tree = Parser.parse('test_test = "test"') assert_identifier(tree) end test "should parse single character identifier" do tree = Parser.parse('x = "test"') assert_identifier(tree) end test "should parse identifier with leading $" do tree = Parser.parse('$test = "test"') assert_identifier(tree) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koi-reference-parser-0.0.3 | test/unit/identifier_test.rb |