Search in sources :

Example 1 with BooleanOption

use of org.erlide.core.builder.CompilerOption.BooleanOption in project erlide_eclipse by erlang.

the class CompilerOptionTest method testToTerm_4.

@Test
public void testToTerm_4() {
    final BooleanOption option = CompilerOptions.DEBUG_INFO;
    final OtpErlangObject actual = option.toTerm(false);
    final String expected = null;
    Assert.assertEquals(expected, actual);
}
Also used : OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject) BooleanOption(org.erlide.core.builder.CompilerOption.BooleanOption) Test(org.junit.Test)

Example 2 with BooleanOption

use of org.erlide.core.builder.CompilerOption.BooleanOption in project erlide_eclipse by erlang.

the class CompilerOptionTest method testToTerm_6.

@Test
public void testToTerm_6() {
    final BooleanOption option = CompilerOptions.WARN_EXPORT_ALL;
    final OtpErlangObject actual = option.toTerm(false);
    final String expected = "nowarn_export_all";
    Assert.assertEquals(expected, actual.toString());
}
Also used : OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject) BooleanOption(org.erlide.core.builder.CompilerOption.BooleanOption) Test(org.junit.Test)

Example 3 with BooleanOption

use of org.erlide.core.builder.CompilerOption.BooleanOption in project erlide_eclipse by erlang.

the class CompilerOptionTest method testToTerm_1.

@Test
public void testToTerm_1() {
    final BooleanOption option = CompilerOptions.WARN_EXPORT_ALL;
    final OtpErlangObject actual = option.toTerm(true);
    final String expected = "warn_export_all";
    Assert.assertEquals(expected, actual.toString());
}
Also used : OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject) BooleanOption(org.erlide.core.builder.CompilerOption.BooleanOption) Test(org.junit.Test)

Example 4 with BooleanOption

use of org.erlide.core.builder.CompilerOption.BooleanOption in project erlide_eclipse by erlang.

the class CompilerOptionTest method testToTerm_3.

@Test
public void testToTerm_3() {
    final BooleanOption option = CompilerOptions.DEBUG_INFO;
    final OtpErlangObject actual = option.toTerm(true);
    final String expected = "debug_info";
    Assert.assertEquals(expected, actual.toString());
}
Also used : OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject) BooleanOption(org.erlide.core.builder.CompilerOption.BooleanOption) Test(org.junit.Test)

Example 5 with BooleanOption

use of org.erlide.core.builder.CompilerOption.BooleanOption in project erlide_eclipse by erlang.

the class CompilerOptionTest method testToTerm_2.

@Test
public void testToTerm_2() {
    final BooleanOption option = CompilerOptions.WARN_EXPORT_ALL;
    final OtpErlangObject actual = option.toTerm(false);
    final String expected = "nowarn_export_all";
    Assert.assertEquals(expected, actual.toString());
}
Also used : OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject) BooleanOption(org.erlide.core.builder.CompilerOption.BooleanOption) Test(org.junit.Test)

Aggregations

OtpErlangObject (com.ericsson.otp.erlang.OtpErlangObject)7 BooleanOption (org.erlide.core.builder.CompilerOption.BooleanOption)7 Test (org.junit.Test)5 ModuleOption (org.erlide.core.builder.CompilerOption.ModuleOption)2 PathsOption (org.erlide.core.builder.CompilerOption.PathsOption)2 RawOption (org.erlide.core.builder.CompilerOption.RawOption)2 OtpErlangList (com.ericsson.otp.erlang.OtpErlangList)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 List (java.util.List)1 Pair (org.eclipse.xtext.xbase.lib.Pair)1 OtpParserException (org.erlide.util.erlang.OtpParserException)1