
from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON


class ImportTest(TestCase):

    def test_idSame(self):
        self.assertEqual(id(EPS),id(EPSILON))

    def test_equal(self):
        self.assertEqual(EPS, EPSILON)

if __name__ == '__main__':
    main()


from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON


class ImportTest(TestCase):
    def test_idSame(self):
        self.assertEqual(id(EPS), id(EPSILON))

    def test_equal(self):
        self.assertEqual(EPS, EPSILON)

    def test_equalToSelf(self):
        self.assertEqual(EPS, EPS)

    def test_notEqualToNumber(self):
        self.assertNotEqual(EPS, 5)

    def test_notEqualToString(self):
        self.assertNotEqual(EPS, "asdf")

    def test_notEqualToObject(self):
        self.assertNotEqual(EPS, object())


if __name__ == '__main__':
    main()

Revert "Revert "Add tests to compare epsilon with another objects""
Revert "Revert "Add tests to compare epsilon with another objects""

This reverts commit d13b3d89124d03f563c2ee2143ae16eec7d0b191.

  
  from unittest import TestCase, main
  from grammpy import EPS
  from grammpy import EPSILON
  
  
  class ImportTest(TestCase):
- 
      def test_idSame(self):
-         self.assertEqual(id(EPS),id(EPSILON))
+         self.assertEqual(id(EPS), id(EPSILON))
  
      def test_equal(self):
          self.assertEqual(EPS, EPSILON)
  
+     def test_equalToSelf(self):
+         self.assertEqual(EPS, EPS)
+ 
+     def test_notEqualToNumber(self):
+         self.assertNotEqual(EPS, 5)
+ 
+     def test_notEqualToString(self):
+         self.assertNotEqual(EPS, "asdf")
+ 
+     def test_notEqualToObject(self):
+         self.assertNotEqual(EPS, object())
+ 
+ 
  if __name__ == '__main__':
      main()
  
Revert "Revert "Add tests to compare epsilon with another objects""
## Code Before:

from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON


class ImportTest(TestCase):

    def test_idSame(self):
        self.assertEqual(id(EPS),id(EPSILON))

    def test_equal(self):
        self.assertEqual(EPS, EPSILON)

if __name__ == '__main__':
    main()

## Instruction:
Revert "Revert "Add tests to compare epsilon with another objects""
## Code After:

from unittest import TestCase, main
from grammpy import EPS
from grammpy import EPSILON


class ImportTest(TestCase):
    def test_idSame(self):
        self.assertEqual(id(EPS), id(EPSILON))

    def test_equal(self):
        self.assertEqual(EPS, EPSILON)

    def test_equalToSelf(self):
        self.assertEqual(EPS, EPS)

    def test_notEqualToNumber(self):
        self.assertNotEqual(EPS, 5)

    def test_notEqualToString(self):
        self.assertNotEqual(EPS, "asdf")

    def test_notEqualToObject(self):
        self.assertNotEqual(EPS, object())


if __name__ == '__main__':
    main()
