Esempio n. 1
0
 def test_parses_a_pattern_string_into_an_AST(self):
   result = parse("**/*.java")
   
   self.assertTrue(isinstance(result, ExpanderNode))
   self.assertTrue(isinstance(result.child, ComponentGlobNode))
   self.assertTrue(isinstance(result.child.child, EndNode))
Esempio n. 2
0
 def test_it_returns_an_EndNode_when_given_an_empty_string(self):
   self.assertTrue(isinstance(parse(""), EndNode))