]> gitweb.michael.orlitzky.com - nagios-mode.git/blobdiff - test_suite.cfg
Added three tests for new functionality.
[nagios-mode.git] / test_suite.cfg
index 478287ac085a337bacc1174e75c4e38148e5d4b4..c3a51262ac3de5b05a18ce1dc8c92f996f8f4131 100644 (file)
@@ -186,3 +186,41 @@ Test 26: Definitions that,
 define service{
   use whatever
 }
+
+
+Test 27: Comment characters within strings should be ignored,
+         that is, treated like strings.
+"Here comes a #comment"
+"And the ;second form"
+
+
+Test 28: Strings within comments should be ignored as well.
+# The "string" should be comment-faced.
+
+
+Test 29: Text between two strings should not be string-faced.
+"String1" between "String2"
+
+Test 30: The ARG0 and USER0 macros don't exist.
+$ARG0$
+$USER0$
+
+Test 31: Commented opening braces should not cause indentation.
+# {
+This line should not be indented.
+
+Test 32: Commented closing braces should not close a block.
+define host {
+  This is indented.
+  # This is just a comment {
+  So this should be indented too.
+}
+But not this.
+
+Test 33: Double opening/closing braces shouldn't cause things
+         to go haywire.
+define host {# {
+  #{}}}}}{}{{}}}{{
+  Still normal indentation.
+}#{}}}}}}}{{{{{{{{{{{{{{{
+Here too.