diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2019-07-24 17:23:00 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2019-07-24 17:23:00 -0300 |
| commit | e0ae77a7093feb56e142d6aa0e6fa1a264f94dd8 (patch) | |
| tree | 70cc32fa45b6a9f69f832dae0e45c38110c6c9fb /clformat/src/test/java/bjc | |
| parent | 5a15fd15334d5e2a0e3a047c2dfff87bd3822a32 (diff) | |
Fix up case printing a bit
Diffstat (limited to 'clformat/src/test/java/bjc')
| -rw-r--r-- | clformat/src/test/java/bjc/utils/test/ioutils/CLFormatterTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clformat/src/test/java/bjc/utils/test/ioutils/CLFormatterTest.java b/clformat/src/test/java/bjc/utils/test/ioutils/CLFormatterTest.java index d3d7075..8b03172 100644 --- a/clformat/src/test/java/bjc/utils/test/ioutils/CLFormatterTest.java +++ b/clformat/src/test/java/bjc/utils/test/ioutils/CLFormatterTest.java @@ -118,6 +118,14 @@ public class CLFormatterTest { } @Test + public void testCasePrinting() { + assertFormat("abc", "~(~A~)", "AbC", "aBc", "aBc bCD", "abc Cad dAC"); + assertFormat("ABC", "~@:(~A~)", "aBc"); + assertFormat("ABc BCD", "~:(~A ~A~)", "aBc", "bCD"); + assertFormat("Abc Cad dAC", "~@(~A~)", "abc Cad dAC"); + } + + @Test public void testRandomCases() { // Random test cases assertEquals("3 dogs are here", format("~D dog~:[s are~; is~] here", 3, 3 == 1)); |
