Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/nielstron/quantulum3 into mo…
Browse files Browse the repository at this point in the history
…re-units
  • Loading branch information
nielstron committed Oct 10, 2018
2 parents 0044352 + 7d04569 commit 6a91f95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quantulum3/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,20 @@ def test_common_words(self, lang):

@unittest.expectedFailure
def test_quantity_comparison_fail_unit(self):
""" Test unequal units (differing only in their entity) """
self.assertEqual(
cls.Quantity(1, cls.Unit(entity=cls.Entity('water'))),
cls.Quantity(1, cls.Unit(entity=cls.Entity('air'))))

@unittest.expectedFailure
def test_quantity_comparison_fail_value(self):
""" Test unequal units (differing only in their value) """
self.assertEqual(
cls.Quantity(1, cls.Unit(entity=cls.Entity('water'))),
cls.Quantity(2, cls.Unit(entity=cls.Entity('water'))))

def test_unsupported_language(self):
""" Test if unknown langugage fails """
try:
p.parse('Urgh wooo ddaa eeee!', lang='xx')
self.fail('No error was thrown on unsupported language'
Expand Down

0 comments on commit 6a91f95

Please sign in to comment.