Package org.erlide.core.builder.CompilerOption

Examples of org.erlide.core.builder.CompilerOption.DefineOption


        Assert.assertEquals(expected, actual);
    }

    @Test
    public void testToTerm_5() throws TermParserException {
        final DefineOption option = CompilerOption.DEFINE;
        @SuppressWarnings("unchecked")
        final List<Pair<String, String>> values = Lists
                .newArrayList(new Pair<String, String>("Macro", "[hej,1]"));
        final OtpErlangObject actual = option.toTerm(values);
        final String expected = "[{d,'Macro',[hej,1]}]";
        Assert.assertEquals(expected, actual.toString());
    }
View Full Code Here


        Assert.assertEquals(expected, actual.toString());
    }

    @Test
    public void testToTerm_5a() throws TermParserException {
        final DefineOption option = CompilerOption.DEFINE;
        @SuppressWarnings("unchecked")
        final List<Pair<String, String>> values = Lists
                .newArrayList(new Pair<String, String>("Macro", ""));
        final OtpErlangObject actual = option.toTerm(values);
        final String expected = "[{d,'Macro'}]";
        Assert.assertEquals(expected, actual.toString());
    }
View Full Code Here

TOP

Related Classes of org.erlide.core.builder.CompilerOption.DefineOption

Copyright © 2018 www.massapicom. 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.