From c231191dbc6f055341fd25ce97309614dc52802f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Thu, 29 Mar 2018 12:55:29 -0700 Subject: [core] Round-trip linear interpolators --- test/style/conversion/stringify.test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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(ExponentialStops { {{0, 1}}, 1 })), + "{\"type\":\"linear\",\"stops\":[[0.0,1.0]]}"); ASSERT_EQ(stringify(CameraFunction(ExponentialStops { {{0, 1}}, 2 })), "{\"type\":\"exponential\",\"base\":2.0,\"stops\":[[0.0,1.0]]}"); ASSERT_EQ(stringify(CameraFunction(IntervalStops { {{0, 1}} })), -- cgit v1.2.1