This commit is contained in:
Matthew Kennedy 2023-03-27 01:55:18 -07:00
parent 996cfd2721
commit 9f0bb410dd
1 changed files with 4 additions and 4 deletions

View File

@ -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// "));
}
}