summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/style.cpp21
1 files changed, 21 insertions, 0 deletions
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());
+}
+