Test sentence capitalization
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 22 Aug 2015 19:36:16 +0000 (19:36 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 22 Aug 2015 19:36:16 +0000 (19:36 +0000)
Add a functional test to make sure uncapitalized actor speech gets
displayed with proper sentence capitalization.

bin/test

index e090fb7..76cebe0 100755 (executable)
--- a/bin/test
+++ b/bin/test
@@ -75,6 +75,11 @@ dialogue = (
     (1, 'You say, "Well, you\'re right."', ""),
     (0, 'says, "Well, you\'re right."', ""),
 
+    # Sentence capitalization
+    (0, "> ", "say this sentence should start with a capital T."),
+    (0, 'You say, "This sentence', ""),
+    (1, 'says, "This sentence', ""),
+
     # Actor disappears
     (1, "> ", "quit"),
     (0, "You suddenly wonder where .* went\.", ""),