Changeset 239


Ignore:
Timestamp:
07/28/2010 09:52:57 AM (12 years ago)
Author:
marcus
Message:

Test case for goto command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/src/SeismicHandler/tests/test_parser.py

    r238 r239  
    199199        self.assertEqual(res, expect) 
    200200 
     201    def testGoto(self): 
     202        """ 
     203        Goto statement. 
     204        """ 
     205        script = """ 
     206        goto step: 
     207        echo foo 
     208        step: 
     209        echo bar /NO_CRLF 
     210        """ 
     211        expect = "BAR" 
     212 
     213        res = self.callScript(script) 
     214        self.assertEqual(res, expect) 
     215 
    201216    def testScript1(self): 
    202217        """ 
Note: See TracChangeset for help on using the changeset viewer.