summaryrefslogtreecommitdiff
path: root/tests/examplefiles/forth
diff options
context:
space:
mode:
authorOleh Prypin <oleh@pryp.in>2021-01-20 10:48:45 +0100
committerGitHub <noreply@github.com>2021-01-20 10:48:45 +0100
commit6f4309217326430145564ae8b1bb393ea684f39f (patch)
treebf4025a5e709426dc927c4afc4fd2286f8450ed9 /tests/examplefiles/forth
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-6f4309217326430145564ae8b1bb393ea684f39f.tar.gz
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/forth')
-rw-r--r--tests/examplefiles/forth/demo.frt3
-rw-r--r--tests/examplefiles/forth/demo.frt.output36
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/examplefiles/forth/demo.frt b/tests/examplefiles/forth/demo.frt
new file mode 100644
index 00000000..1b09ebb0
--- /dev/null
+++ b/tests/examplefiles/forth/demo.frt
@@ -0,0 +1,3 @@
+2 3 + CR .
+: F ( blah ) DUP DROP 1 + ;
+1 F CR .
diff --git a/tests/examplefiles/forth/demo.frt.output b/tests/examplefiles/forth/demo.frt.output
new file mode 100644
index 00000000..53d9d03a
--- /dev/null
+++ b/tests/examplefiles/forth/demo.frt.output
@@ -0,0 +1,36 @@
+'2' Literal.Number.Integer
+' ' Text
+'3' Literal.Number.Integer
+' ' Text
+'+' Keyword
+' ' Text
+'CR' Keyword
+' ' Text
+'.' Keyword
+'\n' Text
+
+':' Keyword.Namespace
+' ' Text
+'F' Name.Class
+' ' Text
+'( blah )' Comment.Single
+' ' Text
+'DUP' Keyword
+' ' Text
+'DROP' Keyword
+' ' Text
+'1' Literal.Number.Integer
+' ' Text
+'+' Keyword
+' ' Text
+';' Keyword
+'\n' Text
+
+'1' Literal.Number.Integer
+' ' Text
+'F' Name.Function
+' ' Text
+'CR' Keyword
+' ' Text
+'.' Keyword
+'\n' Text