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