use of st.gravel.support.compiler.ast.SymbolLiteralNode in project gravel by gravel-st.
the class ParserTest method testParseSymbol2.
@Test
public void testParseSymbol2() {
final SymbolLiteralNode _node;
_node = ((SymbolLiteralNode) Parser.factory.source_("#foo").parseExpression());
assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), SymbolLiteralNode.factory));
assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.value(), st.gravel.core.Symbol.value("foo")));
}
use of st.gravel.support.compiler.ast.SymbolLiteralNode in project gravel by gravel-st.
the class ParserTest method testParseSymbol1.
@Test
public void testParseSymbol1() {
final SymbolLiteralNode _node;
_node = ((SymbolLiteralNode) Parser.factory.source_("#\'from\'\'age\'").parseExpression());
assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), SymbolLiteralNode.factory));
assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.value(), st.gravel.core.Symbol.value("from\'age")));
}
Aggregations