diff tests/test_transitions.yaml @ 21:94d094a0bdb7

Fix some edge cases, add tests.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 04 Jan 2017 21:07:26 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_transitions.yaml	Wed Jan 04 21:07:26 2017 -0800
@@ -0,0 +1,29 @@
+---
+in: |
+    CUT TO:
+
+    INT. BEDROOM
+
+    This is the bedroom.
+out:
+    - ">CUT TO:"
+    - ".INT. BEDROOM"
+    - "!\nThis is the bedroom."
+---
+in: |
+    >fade to black
+
+    EXT. A BLACK HOLE
+
+    This is a black hole.
+out:
+    - ">fade to black"
+    - ".EXT. A BLACK HOLE"
+    - "!\nThis is a black hole."
+---
+in: |
+    NOT A TRANSITION TO:  
+
+    Because it has spaces after the colon.
+out:
+    - "!NOT A TRANSITION TO:  \n\nBecause it has spaces after the colon."