Skip to content

Commit

Permalink
Add tests for Pure
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Sep 8, 2015
1 parent dac6e7c commit dbc5e9c
Show file tree
Hide file tree
Showing 10 changed files with 904 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/languages/c+pure/c_inclusion.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
%<
asm ();
%>

%< -*- C -*-
asm ();
%>

----------------------------------------------------

[
["inline-lang", [
["delimiter", "%<"],
["keyword", "asm"], ["punctuation", "("], ["punctuation", ")"], ["punctuation", ";"],
["delimiter", "%>"]
]],

["inline-lang-c", [
["delimiter", "%< "],
["lang", "-*- C -*-"],
["keyword", "asm"], ["punctuation", "("], ["punctuation", ")"], ["punctuation", ";"],
["delimiter", "%>"]
]]
]

----------------------------------------------------

Checks for C in Pure.
18 changes: 18 additions & 0 deletions tests/languages/cpp+pure/cpp_inclusion.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
%< -*- C++ -*-
alignas
%>

----------------------------------------------------

[
["inline-lang-cpp", [
["delimiter", "%< "],
["lang", "-*- C++ -*-"],
["keyword", "alignas"],
["delimiter", "%>"]
]]
]

----------------------------------------------------

Checks for C++ in Pure.
18 changes: 18 additions & 0 deletions tests/languages/fortran+pure/fortran_inclusion.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
%< -*- Fortran90 -*-
21_SHORT
%>

----------------------------------------------------

[
["inline-lang-fortran", [
["delimiter", "%< "],
["lang", "-*- Fortran90 -*-"],
["number", "21_SHORT"],
["delimiter", "%>"]
]]
]

----------------------------------------------------

Checks for Fortran in Pure.
20 changes: 20 additions & 0 deletions tests/languages/pure/comment_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Foobar
/**/
/* Foo
bar */
#! --nochecks

----------------------------------------------------

[
["comment", "//"],
["comment", "// Foobar"],
["comment", "/**/"],
["comment", "/* Foo\r\nbar */"],
["comment", "#! --nochecks"]
]

----------------------------------------------------

Checks for comments.
Loading

0 comments on commit dbc5e9c

Please sign in to comment.