summaryrefslogtreecommitdiff
path: root/tests/lexers/qbasic
diff options
context:
space:
mode:
authorOleh Prypin <oleh@pryp.in>2021-01-18 20:39:02 +0100
committerGitHub <noreply@github.com>2021-01-18 20:39:02 +0100
commitf0445be718da83541ea3401aad882f3937147263 (patch)
tree26bd361a410d8bea33ce259321fad63e7f3c61af /tests/lexers/qbasic
parent423c44a451db7e5f63147b1c1519661d745fc43a (diff)
downloadpygments-git-f0445be718da83541ea3401aad882f3937147263.tar.gz
Replace tests that assert on token output with auto-updatable samples (#1649)
Diffstat (limited to 'tests/lexers/qbasic')
-rw-r--r--tests/lexers/qbasic/test_keywords_with_dollar.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lexers/qbasic/test_keywords_with_dollar.txt b/tests/lexers/qbasic/test_keywords_with_dollar.txt
new file mode 100644
index 00000000..21c4fbae
--- /dev/null
+++ b/tests/lexers/qbasic/test_keywords_with_dollar.txt
@@ -0,0 +1,22 @@
+---input---
+DIM x
+x = RIGHT$("abc", 1)
+
+---tokens---
+'DIM' Keyword.Declaration
+' ' Text.Whitespace
+'x' Name.Variable.Global
+'\n' Text
+
+'x' Name.Variable.Global
+' ' Text.Whitespace
+'=' Operator
+' ' Text.Whitespace
+'RIGHT$' Keyword.Reserved
+'(' Punctuation
+'"abc"' Literal.String.Double
+',' Punctuation
+' ' Text.Whitespace
+'1' Literal.Number.Integer.Long
+')' Punctuation
+'\n' Text