-
Notifications
You must be signed in to change notification settings - Fork 19
/
screenpy_tests.py
51 lines (30 loc) · 1.68 KB
/
screenpy_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from screenpy import *
print('testing SETTING')
t1 = ' EXT. THE JUNGLE - INDY\'S RUN - CLOSE ANGLE - DAY'
t2 = ' Indy disappears into the foliage. PAN TO an instant later, the leaves '
t3 = ' EXT. THE URUBAMBA RIVER - DUSK'
t4 = """ An amphibian plane sits in the water beneath a green cliff.
Sitting on the wing is JOCK, the British pilot. Indy breaks
out of some distant brush and runs along the path at the top
of the cliff."""
t5 = """ AT THE EDGE OF THE CLEARING
Indy disappears into the foliage. An instant later, the leaves
are peppered with a rain of poison darts and spears.
EXT. THE JUNGLE - INDY'S RUN - VARIOUS SHOTS - DAY
Indy runs like hell through steadily falling terrain. And
always close behind, a swift gang of angry Hovitos.
Occasionally they get close enough to send a dart or spear
whizzing past Indy's head.
EXT. THE URUBAMBA RIVER - DUSK
An amphibian plane sits in the water beneath a green cliff.
Sitting on the wing is JOCK, the British pilot. Indy breaks
out of some distant brush and runs along the path at the top
of the cliff."""
t6 = 'DUSK \n\n An amphibian plane sits in the water beneath a green cliff'
t7 = """EXT. THE URUBAMBA RIVER - DUSK
An amphibian plane sits in the water beneath a green cliff."""
t = [t1,t2,t3,t4,t5,t6,t7]
for i, ti in enumerate(t):
print('\tt{}'.format(str(i + 1)))
for result, start, end in alpha.scanString(ti):
print("\t\tFound \"{}\" at [{}:{}]".format(result, start, end))