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);
+    }
 }