
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()


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()

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

This reverts commit ae4b4fe5fb5c5774720dd3a14549aa88bde91043.

  
  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 "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)

    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()

## Instruction:
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)

if __name__ == '__main__':
    main()
