Sha256: 0afd0a0083a058ad7527507344e385ee0f186516cf7fc17ea9d5063b54c98630
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb')) class IntegerLiteralTest < Test::Unit::TestCase def setup @parser = Bracer.new end test "should parse sexp containing an implicitly positive integer literal" do ast = @parser.parse_string("[10]") assert_equal [[10]], ast end test "should parse sexp containing an explicitly positive integer literal" do ast = @parser.parse_string("[+910]") assert_equal [[910]], ast end test "should parse sexp containing an explicitly negative integer literal" do ast = @parser.parse_string("[-10]") assert_equal [[-10]], ast end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bracer-0.0.2 | test/unit/integer_literal_test.rb |
bracer-0.0.1 | test/unit/integer_literal_test.rb |