File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ matrix:
1818 before_script :
1919 - git submodule update --init
2020 - .mason/mason install clang 3.8.0
21- - .mason/mason install variant 1.1.0
21+ - .mason/mason install variant 1.1.4
2222 - export PATH=`.mason/mason prefix clang 3.8.0`/bin:$PATH
2323 - os : osx
2424 osx_image : xcode7.3
Original file line number Diff line number Diff line change 11CXXFLAGS += -I include --std=c++14 -Wall -Wextra -Werror
22MASON ?= .mason/mason
33
4+ VARIANT = 1.1.4
5+
46default : test
57
68$(MASON ) :
79 git submodule update --init
810
9- mason_packages : $( MASON )
10- $(MASON ) install variant 1.1.0
11+ mason_packages/headers/variant/ $( VARIANT ) :
12+ $(MASON ) install variant $( VARIANT )
1113
12- test : tests/* include/mapbox/geometry/* mason_packages Makefile
13- $(CXX ) tests/* .cpp $(CXXFLAGS ) ` $( MASON) cflags variant 1.1.0 ` -o test
14+ test : tests/* include/mapbox/geometry/* mason_packages/headers/variant/ $( VARIANT ) Makefile
15+ $(CXX ) tests/* .cpp $(CXXFLAGS ) ` $( MASON) cflags variant $( VARIANT ) ` -o test
1416 ./test
1517
1618clean :
Original file line number Diff line number Diff line change @@ -155,10 +155,9 @@ static void testFeature() {
155155 assert (p[" null" ].is <null_value_t >());
156156 assert (p[" null" ] == null_value);
157157
158- p[" null" ] = nullptr ;
158+ p[" null" ] = null_value_t {} ;
159159 assert (p[" null" ].is <null_value_t >());
160160 assert (p[" null" ] == null_value);
161- assert (p[" null" ] == nullptr );
162161
163162 assert (p == p);
164163 assert (!(p != p));
@@ -169,10 +168,10 @@ static void testFeature() {
169168 assert (p.size () == 6 );
170169
171170 feature<double > id1 { point<double >() };
172- id1.id = { 1 };
171+ id1.id = { uint64_t ( 1 ) };
173172
174173 feature<double > id2 { point<double >() };
175- id1.id = { 2 };
174+ id1.id = { uint64_t ( 2 ) };
176175
177176 assert (id1 == id1);
178177 assert (id1 != id2);
You can’t perform that action at this time.
0 commit comments