Skip to content

Commit

Permalink
remove 1.5-only syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Jul 2, 2020
1 parent 3264312 commit 8d140c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ julia:
- 1.2
- 1.3
- 1.4
- 1.5
- nightly

cache:
Expand All @@ -24,7 +25,7 @@ env:
jobs:
include:
- stage: "Documentation"
julia: 1.3
julia: 1.4
os: osx
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate();
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
environment:
matrix:
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1.4
- julia_version: latest

platform:
Expand Down
4 changes: 2 additions & 2 deletions test/circlecircletangent-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function circlecircletangent_test2(fname)

pt1, pt2, pt3, pt4 = circlecircleinnertangents(c1center, c1radius, c2center, c2radius)

if !all(isapprox(O), (pt1, pt2, pt3, pt4))
if !all(pt -> isequal(pt, O), (pt1, pt2, pt3, pt4))
sethue("green")
circle(c2center, c2radius, :stroke)
circle(c1center, c1radius, :stroke)
Expand All @@ -68,7 +68,7 @@ function circlecircletangent_test2(fname)

pt1, pt2, pt3, pt4 = circlecircleoutertangents(c1center, c1radius, c2center, c2radius)

if !all(isapprox(O), (pt1, pt2, pt3, pt4))
if !all(pt -> isequal(pt, O), (pt1, pt2, pt3, pt4))
sethue("red")
arrow(pt1, pt2, linewidth=2)
arrow(pt3, pt4, linewidth=2)
Expand Down

0 comments on commit 8d140c2

Please sign in to comment.