Search in sources :

Example 6 with Signature

use of org.erlide.util.erlang.Signature in project erlide_eclipse by erlang.

the class TypeConverterTest method parseSignature_4.

@Test
public void parseSignature_4() throws SignatureException {
    final String sig = "l3axl2sad";
    final Signature[] result = Signature.parse(sig);
    final String expect = "[l(t(a,x,l(t(s,a)))), d]";
    assertTrue(Arrays.toString(result).equals(expect));
}
Also used : Signature(org.erlide.util.erlang.Signature) OtpErlangString(com.ericsson.otp.erlang.OtpErlangString) Test(org.junit.Test)

Example 7 with Signature

use of org.erlide.util.erlang.Signature in project erlide_eclipse by erlang.

the class TypeConverterTest method parseSignature_0.

@Test
public void parseSignature_0() throws SignatureException {
    final String sig = null;
    final Signature[] result = Signature.parse(sig);
    assertTrue(result == null);
}
Also used : Signature(org.erlide.util.erlang.Signature) OtpErlangString(com.ericsson.otp.erlang.OtpErlangString) Test(org.junit.Test)

Aggregations

Signature (org.erlide.util.erlang.Signature)7 OtpErlangString (com.ericsson.otp.erlang.OtpErlangString)6 Test (org.junit.Test)6 OtpErlangObject (com.ericsson.otp.erlang.OtpErlangObject)1 SignatureException (org.erlide.util.erlang.SignatureException)1