-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from DanielVandH/dt
Fix package
- Loading branch information
Showing
9 changed files
with
52 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
name = "TriangulArt" | ||
uuid = "4e825928-4f37-4da1-b333-216cc9c54310" | ||
authors = ["Jonathan Carroll"] | ||
version = "1.0.0-DEV" | ||
version = "1.0.1" | ||
|
||
[deps] | ||
DelaunayTriangulation = "927a84f5-c5f4-47a5-9785-b46e178433df" | ||
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" | ||
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0" | ||
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" | ||
PolygonOps = "647866c9-e3ac-4575-94e7-e3d426903924" | ||
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0" | ||
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" | ||
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" | ||
|
||
[compat] | ||
DelaunayTriangulation = "0.8, 1" | ||
DelaunayTriangulation = "1" | ||
FileIO = "1" | ||
Images = "0.26" | ||
Plots = "1" | ||
PolygonOps = "0.1" | ||
PyCall = "1" | ||
StableRNGs = "1" | ||
StatsBase = "0.34" | ||
julia = "1" | ||
|
||
[extras] | ||
ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] | ||
test = ["Test", "ReferenceTests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,28 @@ | ||
using TriangulArt | ||
using Test | ||
|
||
@testset "TriangulArt.jl" begin | ||
# Write your tests here. | ||
end | ||
using FileIO | ||
using ReferenceTests | ||
|
||
refimg_path = joinpath(dirname(dirname(pathof(TriangulArt))), "test", "readme_images") | ||
readmeimg_path = joinpath(dirname(dirname(pathof(TriangulArt))), "examples") | ||
|
||
@testset "TriangulArt" begin | ||
bird = load(joinpath(readmeimg_path, "bird_small.jpg")) | ||
readme1 = triangulArt(bird, npts=50, fast=true) # don't test this: rng is not controlled | ||
# Another problem with the above is that, due to the random sampling, | ||
# not all of the image will be covered by a color. | ||
readme2 = triangulArt(bird) | ||
@test_reference joinpath(refimg_path, "readme2.png") readme2 | ||
everest = load(joinpath(readmeimg_path, "everest.jpeg")) | ||
readme3 = triangulArt(everest) | ||
@test_reference joinpath(refimg_path, "readme3.png") readme3 | ||
readme4 = triangulArt(bird, npts=500) | ||
@test_reference joinpath(refimg_path, "readme4.png") readme4 | ||
readme5 = triangulArt(bird, npts=100, refine=true) | ||
@test_reference joinpath(refimg_path, "readme5.png") readme5 | ||
readme6 = triangulArt(bird, npts=100, debug=true) | ||
@test_reference joinpath(refimg_path, "readme6.png") readme6 | ||
readme7 = triangulArt(bird, npts=100, showimagecol=false, debug=true) | ||
@test_reference joinpath(refimg_path, "readme7.png") readme7 | ||
end |