diff options
author | Martin Vilcans <martin@librador.com> | 2015-11-17 08:54:16 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2015-11-17 08:54:16 +0100 |
commit | fe3a3c714221288b81127beee389b0431cad8527 (patch) | |
tree | baa0024a0696413d3802b0a0cda7e186bf57bd80 /tests/fountain_test.py | |
parent | d4a721b470a960e71a683b8ebff61b26c868d1cd (diff) | |
download | screenplain-fe3a3c714221288b81127beee389b0431cad8527.tar.gz |
Test that alphanumeric character names work
Diffstat (limited to 'tests/fountain_test.py')
-rw-r--r-- | tests/fountain_test.py | 7 |
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. |