Permalink
Browse files

Merge pull request #10 from triplem/master

Add test-case which shows problem #9
  • Loading branch information...
2 parents 34c588d + 9d2602b commit 9e6d04ce4e5d4881b903d93f2d7e3f7c44f0c029 @paradigmatic committed Apr 8, 2012
Showing with 22 additions and 0 deletions.
  1. +4 −0 core/test-resources/test-config-comments.conf
  2. +18 −0 core/test/io/Standard.scala
@@ -0,0 +1,4 @@
+foo = true
+bar = 2
+baz = hello world
+# key =
@@ -0,0 +1,18 @@
+package org.streum.configrity.test.io
+
+import org.scalatest.FlatSpec
+import org.scalatest.matchers.ShouldMatchers
+import org.streum.configrity._
+import org.streum.configrity.io.StandardFormat.ParserException
+
+class Standard extends FlatSpec with ShouldMatchers{
+
+ "a flat format comment line" must "be ignored" in {
+ val config = Configuration.loadResource("/test-config-comments.conf")
+
+ val comment = config("comment", "")
+
+ assert(comment == "")
+ }
+
+}

0 comments on commit 9e6d04c

Please sign in to comment.