diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-11 17:07:25 +0300 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-04-14 12:33:13 -0700 |
commit | 2f4d162debd7e4accfc0b20360058304dce40801 (patch) | |
tree | 276894e2ccfa67874dbe6ecf263330d6b35007ad /test/map | |
parent | 8877452ec36d01a753221998f31b67700e595d54 (diff) | |
download | qtlocation-mapboxgl-2f4d162debd7e4accfc0b20360058304dce40801.tar.gz |
[core] Tighten geo.hpp ctors
Diffstat (limited to 'test/map')
-rw-r--r-- | test/map/transform.test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/map/transform.test.cpp b/test/map/transform.test.cpp index 8a86598a1d..accf7d293c 100644 --- a/test/map/transform.test.cpp +++ b/test/map/transform.test.cpp @@ -471,14 +471,12 @@ TEST(Transform, DefaultTransform) { // Cannot assign invalid sizes. std::vector<Size> invalidSizes = { {}, { min, max }, { max, min } }; for (const Size& size : invalidSizes) { - ASSERT_TRUE(size.isEmpty()); - bool pass = false; try { transform.resize(size); + ASSERT_TRUE(false) << "Should throw"; } catch (...) { - pass = true; + ASSERT_TRUE(size.isEmpty()); } - ASSERT_TRUE(pass) << "Expected to throw"; } Size validSize { max, max }; |