Skip to content

Commit

Permalink
Merge pull request #711 from Golmote/tests-ini
Browse files Browse the repository at this point in the history
Add tests for Ini
  • Loading branch information
Golmote committed Aug 30, 2015
2 parents 28759d0 + 36b5b56 commit c374caa
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/languages/ini/comment_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
;
; foobar

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

[
["comment", ";"],
["comment", "; foobar"]
]

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

Checks for comments.
13 changes: 13 additions & 0 deletions tests/languages/ini/important_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[owner]
[foobar]

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

[
["important", "[owner]"],
["important", "[foobar]"]
]

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

Checks for section titles.
21 changes: 21 additions & 0 deletions tests/languages/ini/key_value_feature.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
foo=Bar Baz
foobar=42

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

[
["constant", "foo"],
["attr-value", [
["punctuation", "="],
"Bar Baz"
]],
["constant", "foobar"],
["attr-value", [
["punctuation", "="],
"42"
]]
]

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

Checks for key/value pairs.

0 comments on commit c374caa

Please sign in to comment.