use of org.erlide.core.builder.CompilerOption.DefineOption in project erlide_eclipse by erlang.
the class CompilerOptionTest method testToTerm_5a.
@Test
public void testToTerm_5a() throws OtpParserException {
final DefineOption option = CompilerOptions.DEFINE;
@SuppressWarnings("unchecked") final List<Pair<String, String>> values = Lists.newArrayList(new Pair<>("Macro", ""));
final OtpErlangObject actual = option.toTerm(values);
final String expected = "[{d,'Macro'}]";
Assert.assertEquals(expected, actual.toString());
}
use of org.erlide.core.builder.CompilerOption.DefineOption in project erlide_eclipse by erlang.
the class CompilerOptionTest method testToTerm_5.
@Test
public void testToTerm_5() throws OtpParserException {
final DefineOption option = CompilerOptions.DEFINE;
@SuppressWarnings("unchecked") final List<Pair<String, String>> values = Lists.newArrayList(new Pair<>("Macro", "[hej,1]"));
final OtpErlangObject actual = option.toTerm(values);
final String expected = "[{d,'Macro',[hej,1]}]";
Assert.assertEquals(expected, actual.toString());
}
Aggregations