We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9663fec commit 05401daCopy full SHA for 05401da
test/syntax_tree_test.rb
@@ -29,6 +29,11 @@ def test_parse_error
29
assert_raises(Parser::ParseError) { SyntaxTree.parse("<>") }
30
end
31
32
+ def test_marshalable
33
+ node = SyntaxTree.parse("1 + 2")
34
+ assert_operator(node, :===, Marshal.load(Marshal.dump(node)))
35
+ end
36
+
37
def test_maxwidth_format
38
assert_equal("foo +\n bar\n", SyntaxTree.format("foo + bar", 5))
39
0 commit comments