From 97ec3766141052e557a4eb8c39883fd1b7d6536f Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Mon, 14 Jul 2014 16:16:20 -0400 Subject: C++ exception with description "array value has unexpected number of elements" thrown in the test body. --- test/style.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') diff --git a/test/style.cpp b/test/style.cpp index a321fe835d..3eb1644b0e 100644 --- a/test/style.cpp +++ b/test/style.cpp @@ -26,3 +26,24 @@ TEST(Style, Colors) { Style style; style.loadJSON((const uint8_t *)stylejson.str().c_str()); } + +TEST(Style, Functions) { + std::ifstream stylefile("./fuzz-functions.min.js"); + ASSERT_TRUE(stylefile.good()); + std::stringstream stylejson; + stylejson << stylefile.rdbuf(); + + Style style; + style.loadJSON((const uint8_t *)stylejson.str().c_str()); +} + +TEST(Style, Layers) { + std::ifstream stylefile("./fuzz-layers.min.js"); + ASSERT_TRUE(stylefile.good()); + std::stringstream stylejson; + stylejson << stylefile.rdbuf(); + + Style style; + style.loadJSON((const uint8_t *)stylejson.str().c_str()); +} + -- cgit v1.2.1