Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/i/MiniParse-0.2.0/MiniParse/Meta/Drawable/tests.py   MiniParse(Download)
    def testAlternativeWithOneBranch(self):
        a = builder.makeAlternative([Terminal("foo")])
        b = Terminal("foo")
        self.assertEqual(a, b)
 
    def testAlternativeInAlternative(self):
        a = builder.makeAlternative([Terminal("foo"), Alternative([Terminal("bar"), Terminal("baz")])])
    def testDuplicateBranchInAlternative(self):
        a = builder.makeAlternative([Terminal("bar"), Terminal("foo"), Terminal("bar"), Null])
        b = Alternative([Terminal("bar"), Terminal("foo"), Null])
        self.assertEqual(a, b)
 
    def testMultipleSimplifcationSteps(self):
        a = builder.makeAlternative([Terminal("bar"), Alternative([Terminal("bar"), Terminal("bar")])])