aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2015-11-17 08:54:16 +0100
committerMartin Vilcans <martin@librador.com>2015-11-17 08:54:16 +0100
commitfe3a3c714221288b81127beee389b0431cad8527 (patch)
treebaa0024a0696413d3802b0a0cda7e186bf57bd80
parentd4a721b470a960e71a683b8ebff61b26c868d1cd (diff)
downloadscreenplain-fe3a3c714221288b81127beee389b0431cad8527.tar.gz
Test that alphanumeric character names work
-rw-r--r--tests/fountain_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/fountain_test.py b/tests/fountain_test.py
index 95a4a81..fff1e48 100644
--- a/tests/fountain_test.py
+++ b/tests/fountain_test.py
@@ -148,6 +148,13 @@ class DialogTests(TestCase):
self.assertEquals(Dialog, type(dialog))
self.assertEquals(plain('SOME GUY'), dialog.character)
+ def test_alphanumeric_character(self):
+ paras = parse([
+ 'R2D2',
+ 'Bee-bop',
+ ])
+ self.assertEquals([Dialog], [type(p) for p in paras])
+ self.assertEquals(plain('R2D2'), paras[0].character)
# Spec http://fountain.io/syntax#section-character:
# Character names must include at least one alphabetical character.