diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-07 12:35:27 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-09 11:16:26 -0600 |
commit | f35ca0d9dfc8a6ba88273edbeda43e633ae0adce (patch) | |
tree | 74c11b9c7125c22516a5cbc46322763a72964c43 /test/style | |
parent | 9df24addfbfd922baada7d9778f402b91e69ed33 (diff) | |
download | qtlocation-mapboxgl-f35ca0d9dfc8a6ba88273edbeda43e633ae0adce.tar.gz |
[core, ios, macos] Refactor composite stop types and conversions
Diffstat (limited to 'test/style')
-rw-r--r-- | test/style/conversion/stringify.test.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/style/conversion/stringify.test.cpp b/test/style/conversion/stringify.test.cpp index dd04789d4b..1dae20b26b 100644 --- a/test/style/conversion/stringify.test.cpp +++ b/test/style/conversion/stringify.test.cpp @@ -101,9 +101,12 @@ TEST(Stringify, SourceFunction) { TEST(Stringify, CompositeFunction) { ASSERT_EQ(stringify(CompositeFunction<float>("property", - std::map<float, ExponentialStops<float>> { - { 0, ExponentialStops<float> { {{0, 1}}, 2 } }, - { 1, ExponentialStops<float> { {{0, 1}}, 2 } } + CompositeExponentialStops<float> { + { + { 0, {{0, 1}} }, + { 1, {{0, 1}} } + }, + 2 }, 0.0f)), "{\"property\":\"property\",\"type\":\"exponential\",\"base\":2.0," "\"stops\":[" |