Sha256: b2380e0589ac773ef0fad047e522e1d03f98b74cb8855c82ef336ab7cef235f6
Contents?: true
Size: 378 Bytes
Versions: 4
Compression:
Stored size: 378 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'test_helper.rb')) class ToSexpTest < Test::Unit::TestCase def setup @parser = Sexpistol.new end test "should convert nested arrays back into an S-Expression" do ast = [:string, [:is, [:parsed]]] sexp = @parser.to_sexp(ast) assert_equal "( string ( is ( parsed ) ) )", sexp end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sexpistol-0.0.4 | test/unit/to_sexp_test.rb |
sexpistol-0.0.3 | test/unit/to_sexp_test.rb |
sexpistol-0.0.2 | test/unit/to_sexp_test.rb |
sexpistol-0.0.1 | test/unit/to_sexp_test.rb |