Skip to content

Commit

Permalink
test: Extended unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
fg-mindee committed Nov 17, 2021
1 parent bda3773 commit bbf5676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/common/test_datasets_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def test_decode_sequence():
with pytest.raises(AssertionError):
utils.decode_sequence(np.array([2, 4.5]), mapping)

assert utils.decode_sequence([3, 4, 3, 4], mapping) == "dede"


@pytest.mark.parametrize(
"sequences, vocab, target_size, sos, eos, pad, dynamic_len, error, out_shape, gts",
Expand Down

0 comments on commit bbf5676

Please sign in to comment.