コード例 #1
0
 def test_peek_CanFail(self):
     state = ScannerState('foo')
     self.assertFalse(state.peek('fxo'))
コード例 #2
0
 def test_peek_CanFail(self):
     state = ScannerState("foo")
     self.assertFalse(state.peek("fxo"))
コード例 #3
0
 def test_peek_CanSucceed(self):
     state = ScannerState('foo')
     self.assertTrue(state.peek('foo'))
コード例 #4
0
 def test_peek_CanSucceed(self):
     state = ScannerState("foo")
     self.assertTrue(state.peek("foo"))