summaryrefslogtreecommitdiff
path: root/test/style/conversion/stringify.test.cpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-03-29 12:55:29 -0700
committerMinh Nguyễn <mxn@1ec5.org>2018-03-29 19:18:02 -0700
commitc231191dbc6f055341fd25ce97309614dc52802f (patch)
tree8407c785548914ba41d924d9820eaba080715fb6 /test/style/conversion/stringify.test.cpp
parent553efa38e3591ce62863d4d74222710f8e3c2337 (diff)
downloadqtlocation-mapboxgl-c231191dbc6f055341fd25ce97309614dc52802f.tar.gz
[core] Round-trip linear interpolatorsupstream/1ec5-interpolate-linear-11562
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}} })),