Skip to content

Commit

Permalink
Implement missing lexer test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhgg committed Oct 13, 2015
1 parent f84c6a6 commit 6c52d0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core_language/test_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ def test_lex_reports_useful_unknown_character_error():
lex_one(u'\u203B')
assert u'Syntax Error GraphQL (1:1) Unexpected character "\\u203b"' in excinfo.value.message

with raises(LanguageError) as excinfo:
lex_one(u'\u200b')
assert u'Syntax Error GraphQL (1:1) Unexpected character "\\u200b"' in excinfo.value.message


def test_lex_reports_useful_information_for_dashes_in_names():
q = u'a-b'
Expand Down

0 comments on commit 6c52d0f

Please sign in to comment.