Skip to content

Commit 2353edf

Browse files
committed
Update tests
1 parent ed563bd commit 2353edf

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

test/test_B-GMTs.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,9 @@
135135
result = gmt("gmtspatial -Q -fg", [0 0; 1 0; 1 1; 0 1; 0 0]);
136136
# Intersections
137137
l1 = gmt("project -C22/49 -E-60/-20 -G20 -Q");
138-
l2 = gmt("project -C0/-60 -E-60/-30 -G20 -Q");
138+
l2 = gmt("project -C22/49 -E-60/-20 -G20 -Q");
139139
#int = gmt("gmtspatial -Ie -Fl", l1, l2); # Error returned from GMT API: GMT_ONLY_ONE_ALLOWED (59)
140-
if (GMTver > v"6.2")
141-
int = gmtspatial((l1, l2), I=:e, F="l");
142-
end
140+
int = gmtspatial((l1, l2), I=:e, F="l");
143141
d = [-300 -3500; -200 -800; 400 -780; 500 -3400; -300 -3500];
144142
gmtspatial(d, C=true, R="0/100/-3100/-3000");
145143

test/test_GRDs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
D = mat2ds([10 10; 15 20; 20 10; 10 10]);
7878
rasterzones!(I, D, mean)
7979

80-
D = [mat2ds([-1 -1; 1 1; 1 -1; -1 -1], attrib=Dict("Feature_ID" => "1", "NAME" => "a")),
80+
D = [mat2ds([-1.0 -1; 1 1; 1 -1; -1 -1], attrib=Dict("Feature_ID" => "1", "NAME" => "a")),
8181
mat2ds([1.5 1.0; 1.5 1.5; 2.0 1.0; 1.5 1.0], attrib=Dict("Feature_ID" => "2", "NAME" => "b"))];
8282
zonal_statistics(G, D, mean, byfeatures=true);
8383
zonal_statistics(mean, G, D, groupby="NAME");

0 commit comments

Comments
 (0)