about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-12-02 18:22:04 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-12-02 18:22:04 -0800
commitf1c95401d80a81475cebc21c6ec1e333dfe796ba (patch)
treec423a12eb1361d1722da3b8d205b1546cba8645f
parent3c93ddcbaa5edd4e2c0404c3ef0b149b2a33a9f6 (diff)
downloadmu-f1c95401d80a81475cebc21c6ec1e333dfe796ba.tar.gz
2616
Can't find a test case where it's reading comments it shouldn't be, so
far..
-rw-r--r--056recipe_header.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc
index ccfe42d3..3c43fa38 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -88,6 +88,17 @@ recipe main
 -parse: header ingredient: local-scope
 +error: recipe body must begin with '['
 
+:(scenario recipe_handles_missing_bracket_3)
+% Hide_errors = true;
+recipe main  # comment
+  local-scope
+  {
+  }
+]
+# doesn't overflow line when reading header
+-parse: header ingredient: local-scope
++error: recipe body must begin with '['
+
 :(after "Begin debug_string(recipe x)")
 out << "ingredients:\n";
 for (long long int i = 0; i < SIZE(x.ingredients); ++i)