From cb96e30f2583bc1b98efbf9c8b6b718c0f3853fa Mon Sep 17 00:00:00 2001
From: Niels <niels.lohmann@gmail.com>
Date: Wed, 11 Feb 2015 12:21:46 +0100
Subject: [PATCH] try to understand re2c

---
 test/unit.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/unit.cpp b/test/unit.cpp
index af01e450..7b7dd5cc 100644
--- a/test/unit.cpp
+++ b/test/unit.cpp
@@ -4181,4 +4181,9 @@ TEST_CASE("parser class")
             }
         }
     }
+
+    SECTION("parse errors")
+    {
+        CHECK_THROWS_AS(json::parser("-,").parse(), std::invalid_argument);
+    }
 }