summaryrefslogtreecommitdiff
path: root/tests/test_idris.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
commit203ef1eff6daebab6f95b0b49e6e6a58168073fb (patch)
tree7defa199f48a34787f980b6400d8bbaa9380039a /tests/test_idris.py
parente09d4e0cf23d7c6069ddc690942ceb4cd23fd556 (diff)
parentb2c91c70ee536b0472100d1273818f8bb45529fe (diff)
downloadpygments-git-bug/angular-html.tar.gz
Merge branch 'master' into bug/angular-htmlbug/angular-html
# Conflicts: # tests/test_shell.py
Diffstat (limited to 'tests/test_idris.py')
-rw-r--r--tests/test_idris.py74
1 files changed, 37 insertions, 37 deletions
diff --git a/tests/test_idris.py b/tests/test_idris.py
index 8580bde4..42dcb3cb 100644
--- a/tests/test_idris.py
+++ b/tests/test_idris.py
@@ -18,48 +18,48 @@ def lexer():
yield IdrisLexer()
def test_reserved_word(lexer):
- fragment = u'namespace Foobar\n links : String\n links = "abc"'
+ fragment = 'namespace Foobar\n links : String\n links = "abc"'
tokens = [
- (Keyword.Reserved, u'namespace'),
- (Text, u' '),
- (Keyword.Type, u'Foobar'),
- (Text, u'\n'),
- (Text, u' '),
- (Name.Function, u'links'),
- (Text, u' '),
- (Operator.Word, u':'),
- (Text, u' '),
- (Keyword.Type, u'String'),
- (Text, u'\n'),
- (Text, u' '),
- (Text, u' '),
- (Text, u'links'),
- (Text, u' '),
- (Operator.Word, u'='),
- (Text, u' '),
- (Literal.String, u'"'),
- (Literal.String, u'abc'),
- (Literal.String, u'"'),
- (Text, u'\n')
+ (Keyword.Reserved, 'namespace'),
+ (Text, ' '),
+ (Keyword.Type, 'Foobar'),
+ (Text, '\n'),
+ (Text, ' '),
+ (Name.Function, 'links'),
+ (Text, ' '),
+ (Operator.Word, ':'),
+ (Text, ' '),
+ (Keyword.Type, 'String'),
+ (Text, '\n'),
+ (Text, ' '),
+ (Text, ' '),
+ (Text, 'links'),
+ (Text, ' '),
+ (Operator.Word, '='),
+ (Text, ' '),
+ (Literal.String, '"'),
+ (Literal.String, 'abc'),
+ (Literal.String, '"'),
+ (Text, '\n')
]
assert list(lexer.get_tokens(fragment)) == tokens
def test_compiler_directive(lexer):
- fragment = u'%link C "object.o"\n%name Vect xs'
+ fragment = '%link C "object.o"\n%name Vect xs'
tokens = [
- (Keyword.Reserved, u'%link'),
- (Text, u' '),
- (Keyword.Type, u'C'),
- (Text, u' '),
- (Literal.String, u'"'),
- (Literal.String, u'object.o'),
- (Literal.String, u'"'),
- (Text, u'\n'),
- (Keyword.Reserved, u'%name'),
- (Text, u' '),
- (Keyword.Type, u'Vect'),
- (Text, u' '),
- (Text, u'xs'),
- (Text, u'\n')
+ (Keyword.Reserved, '%link'),
+ (Text, ' '),
+ (Keyword.Type, 'C'),
+ (Text, ' '),
+ (Literal.String, '"'),
+ (Literal.String, 'object.o'),
+ (Literal.String, '"'),
+ (Text, '\n'),
+ (Keyword.Reserved, '%name'),
+ (Text, ' '),
+ (Keyword.Type, 'Vect'),
+ (Text, ' '),
+ (Text, 'xs'),
+ (Text, '\n')
]
assert list(lexer.get_tokens(fragment)) == tokens