Skip to content

Commit

Permalink
update tests and version
Browse files Browse the repository at this point in the history
  • Loading branch information
daschw committed Feb 6, 2020
1 parent 25382f4 commit fb48f3d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ os:
julia:
- 0.7
- 1.0
- 1.3
- nightly
notifications:
email: true
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "PlotUtils"
uuid = "995b91a9-d308-5afd-9ec6-746e21dbc043"
version = "0.6.2"
version = "0.6.3"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand All @@ -10,9 +10,9 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[compat]
julia = "0.7, 1"
Colors = "0"
Reexport = "0"
julia = "0.7, 1"

[extras]
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ environment:
matrix:
- julia_version: 0.7
- julia_version: 1
- julia_version: 1.3
- julia_version: nightly

platform:
Expand Down
3 changes: 0 additions & 3 deletions test/Project.toml

This file was deleted.

8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using PlotUtils
using Test
using Statistics: mean
using Dates

# TODO: real tests

Expand Down Expand Up @@ -86,7 +87,12 @@ end

@testset "ticks" begin
@test optimize_ticks(-1,2) == ([-1.0,0.0,1.0,2.0],-1.0,2.0)

dt1, dt2 = Dates.value(DateTime(2000)), Dates.value(DateTime(2100))
@test optimize_datetime_ticks(dt1, dt2) == (
[63113990400000, 63902908800000, 64691827200000, 65480745600000],
["2001-01-01", "2026-01-01", "2051-01-01", "2076-01-01"]
)

@testset "small range $x, $(i)ϵ" for x in exp10.(-12:12), i in -5:5
y = x + i*eps(x)
x,y = minmax(x,y)
Expand Down

0 comments on commit fb48f3d

Please sign in to comment.