Sha256: de46d5a27cb6f78b0311c44b7a06357549fe4347efbe29eb2abb85179b90ed1c
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb')) class IntegerAssignmentTest < Test::Unit::TestCase include KoiReferenceParser test "assignment of integer" do tree = Parser.parse('test = 1') assert_assigns_expression(IntegerLiteral, '1', tree) end test "assignment of explicitly positive integer" do tree = Parser.parse('test = +1') assert_assigns_expression(IntegerLiteral, '+1', tree) end test "assignment of explicitly negative integer" do tree = Parser.parse('test = -1') assert_assigns_expression(IntegerLiteral, '-1', tree) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koi-reference-parser-0.0.3 | test/unit/assignment/integer_assignment_test.rb |