Skip to content

Commit

Permalink
Additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Feb 14, 2020
1 parent 07be30d commit b2c0670
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cell_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,8 @@ def test_values_with_equal_signs_inside(text='python string="value=5"',
def test_incorrectly_encoded(text="this is an incorrect expression d={{4 b=3"):
value = text_to_metadata(text, allow_title=True)
assert metadata_to_text(*value) == text


def test_incorrectly_encoded_json(text='this is an incorrect expression {"d": "}'):
value = text_to_metadata(text, allow_title=True)
assert metadata_to_text(*value) == text

0 comments on commit b2c0670

Please sign in to comment.