Project

Profile

Help

Revision 0713b7fd

Added by Vincent Le Goff over 4 years ago

Add a SharpScript syntax to support flags

View differences:

src/tests/sharp/test_syntax.py
84 84
            "trigger('Should it work?', compile('var = 2 + 3\nprint var\n', " \
85 85
            "'SharpScript', 'exec'))"
86 86
        ])
87

  
88
    def test_flag(self):
89
        """Test the SharpScript syntax with flags in funciton calls."""
90
        statements = self.engine.feed("#say {A message} -braille +speech")
91
        self.assertEqual(statements, [
92
            "say('A message', braille=False, speech=True)"
93
        ])

Also available in: Unified diff