summaryrefslogtreecommitdiff
path: root/test/style/conversion/stringify.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/style/conversion/stringify.test.cpp')
-rw-r--r--test/style/conversion/stringify.test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/style/conversion/stringify.test.cpp b/test/style/conversion/stringify.test.cpp
index 0b2940a0e0..06349c9388 100644
--- a/test/style/conversion/stringify.test.cpp
+++ b/test/style/conversion/stringify.test.cpp
@@ -80,6 +80,8 @@ TEST(Stringify, Filter) {
}
TEST(Stringify, CameraFunction) {
+ ASSERT_EQ(stringify(CameraFunction<float>(ExponentialStops<float> { {{0, 1}}, 1 })),
+ "{\"type\":\"linear\",\"stops\":[[0.0,1.0]]}");
ASSERT_EQ(stringify(CameraFunction<float>(ExponentialStops<float> { {{0, 1}}, 2 })),
"{\"type\":\"exponential\",\"base\":2.0,\"stops\":[[0.0,1.0]]}");
ASSERT_EQ(stringify(CameraFunction<float>(IntervalStops<float> { {{0, 1}} })),