Revision c1e9c2e6
Added by Vincent Le Goff over 4 years ago
src/tests/sharp/test_syntax.py | ||
---|---|---|
113 | 113 |
self.assertEqual(statements, [ |
114 | 114 |
"trigger('ok', '#play new.wav\n#stop')", |
115 | 115 |
]) |
116 |
|
|
117 |
def test_escape_sharp(self): |
|
118 |
"""Test the escaped sharp symbol.""" |
|
119 |
# A sharp escaping with plain text |
|
120 |
statements = self.engine.feed("##out") |
|
121 |
self.assertEqual(statements, ["send('#out')"]) |
|
122 |
|
|
123 |
# A sharp escaping with SharpScript |
|
124 |
statements = self.engine.feed("#macro ##ok") |
|
125 |
self.assertEqual(statements, ["macro('#ok')"]) |
Also available in: Unified diff
Add the sharp escaping (##) to SharpScript