Examples of OtpErlangAtom


Examples of com.ericsson.otp.erlang.OtpErlangAtom

        Assert.assertEquals(r.atomValue(), "hello");
    }

    @Test
    public void atom_2() throws TermParserException {
        final OtpErlangAtom r = (OtpErlangAtom) termParser.parse("hello   ");
        Assert.assertEquals(r.atomValue(), "hello");
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

        Assert.assertEquals(r.atomValue(), "hello");
    }

    @Test
    public void atom_3() throws TermParserException {
        final OtpErlangAtom r = (OtpErlangAtom) termParser.parse("   hello");
        Assert.assertEquals(r.atomValue(), "hello");
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

            for (final ErlangFunction f : functions) {
                funsT[j] = f.getNameArityTuple();
                j++;
            }
            final OtpErlangTuple modFunsT = new OtpErlangTuple(new OtpErlangObject[] {
                    new OtpErlangAtom(i.getImportModule()), new OtpErlangList(funsT) });
            result.add(modFunsT);
        }
        return result;
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

            if (!nameMatches && prefix.startsWith("'")) {
                nameMatches = moduleName.startsWith(prefix.substring(1));
            }
            if (nameMatches && (includes || !module.getName().endsWith(".hrl"))) {
                if (!result.contains(moduleName)) {
                    final String name = new OtpErlangAtom(moduleName).toString();
                    result.add(name);
                }
            }
        }
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

                new OtpErlangString("a"), new OtpErlangLong(35) }));
    }

    @Test
    public void cvtStringOk_1() throws SignatureException {
        test("astring", "a", new OtpErlangAtom("astring"));
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

    }

    @Test
    public void cvtMapOk_2() throws SignatureException {
        final HashMap<OtpErlangObject, OtpErlangObject> map = new HashMap<OtpErlangObject, OtpErlangObject>();
        map.put(new OtpErlangAtom("foo"), new OtpErlangAtom("bar"));
        test(map, "m", new OtpErlangMap(
                new OtpErlangObject[] { new OtpErlangAtom("foo") },
                new OtpErlangObject[] { new OtpErlangAtom("bar") }));
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

    }

    @SuppressWarnings("boxing")
    @Test
    public void cvtBoolOk_1() throws SignatureException {
        test(true, "o", new OtpErlangAtom("true"));
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

    }

    @SuppressWarnings("boxing")
    @Test
    public void cvtBoolOk_2() throws SignatureException {
        test(false, "o", new OtpErlangAtom("false"));
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

    }

    @SuppressWarnings("boxing")
    @Test(expected = SignatureException.class)
    public void cvtBoolFail_1() throws SignatureException {
        test(true, "i", new OtpErlangAtom("true"));
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangAtom

    @Test
    public void cvtConvertible_1() throws SignatureException {
        final IConvertible x = new IConvertible() {
            @Override
            public OtpErlangObject toErlangObject() {
                return new OtpErlangAtom("__kalle__");
            }
        };
        test(x, "j", new OtpErlangAtom("__kalle__"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.