def testNegative(self): self.assertFalse(nfsmsim("aabc", 1, self.edges, self.accepting)) self.assertFalse(nfsmsim("", 1, self.edges, self.accepting))
def testPositive(self): self.assertTrue(nfsmsim("abc", 1, self.edges, self.accepting)) self.assertTrue(nfsmsim("aaa", 1, self.edges, self.accepting)) self.assertTrue(nfsmsim("abbbc", 1, self.edges, self.accepting))