Sha256: cf047b25462a857400de778635ad81c48d5e74236fb4c7840c0473c45dbf33fd
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb')) class IntegerLiteralTest < Test::Unit::TestCase def setup @parser = Sexpistol.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
6 entries across 6 versions & 1 rubygems