use of com.ericsson.otp.erlang.OtpErlangAtom in project erlide_eclipse by erlang.
the class TermParserTest method atom_3.
@Test
public void atom_3() throws OtpParserException {
final OtpErlangAtom r = (OtpErlangAtom) termParser.parse(" hello");
Assert.assertEquals(r.atomValue(), "hello");
}
use of com.ericsson.otp.erlang.OtpErlangAtom in project erlide_eclipse by erlang.
the class PatternMatchTest method testMatch.
@Test
public void testMatch() throws Exception {
final OtpBindings r = OtpErlang.match("[W, V]", "[a, b]");
Assert.assertEquals(r.get("W"), new OtpErlangAtom("a"));
Assert.assertEquals(r.get("V"), new OtpErlangAtom("b"));
}
Aggregations