diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-03-29 12:55:29 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-03-29 19:18:02 -0700 |
commit | c231191dbc6f055341fd25ce97309614dc52802f (patch) | |
tree | 8407c785548914ba41d924d9820eaba080715fb6 /test/style/conversion/stringify.test.cpp | |
parent | 553efa38e3591ce62863d4d74222710f8e3c2337 (diff) | |
download | qtlocation-mapboxgl-upstream/1ec5-interpolate-linear-11562.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.cpp | 2 |
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}} })), |