tests
This commit is contained in:
parent
996cfd2721
commit
9f0bb410dd
|
@ -8,9 +8,9 @@ import static org.junit.Assert.assertEquals;
|
|||
public class ConfigDefinitionOutputTest {
|
||||
@Test
|
||||
public void testComment() {
|
||||
assertEquals("", BaseCHeaderConsumer.packComment("", "\t"));
|
||||
assertEquals("\t * abc\n", BaseCHeaderConsumer.packComment("abc", "\t"));
|
||||
assertEquals("\t * abc\n" +
|
||||
"\t * vbn\n", BaseCHeaderConsumer.packComment("abc\\nvbn", "\t"));
|
||||
assertEquals("", BaseCHeaderConsumer.packComment("", "\t// "));
|
||||
assertEquals("\t// abc\n", BaseCHeaderConsumer.packComment("abc", "\t// "));
|
||||
assertEquals("\t// abc\n" +
|
||||
"\t// vbn\n", BaseCHeaderConsumer.packComment("abc\\nvbn", "\t// "));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue