Skip to content

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
timvieira committed Jun 29, 2024
1 parent 1a58991 commit 87645a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_wcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ def test_sdd1():
def test_misc():
Derivation(None, Derivation(None, 'X'))._repr_html_()

x = Derivation(None, Derivation(None, 'X'))
y = Derivation(None, Derivation(None, 'Y'))
assert x == x
assert hash(x) == hash(x)
assert x != y
assert hash(x) != hash(y)

CFG.from_string('', Real)._repr_html_()

Derivation.to_nltk(None)
Expand Down

0 comments on commit 87645a1

Please sign in to comment.