Skip to content

Commit e3acceb

Browse files
committed
upgrade to variant 1.1.4
1 parent a1d32e3 commit e3acceb

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.mason

Submodule .mason updated 512 files

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
CXXFLAGS += -I include --std=c++14 -Wall -Wextra -Werror
22
MASON ?= .mason/mason
33

4+
VARIANT = 1.1.4
5+
46
default: 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

1618
clean:

tests/test.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)