Skip to content

Commit

Permalink
Setup for version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Jul 10, 2020
1 parent 8c56d92 commit 8de97e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
julia = "1"

[extras]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Random"]
test = ["Test"]
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Test
using Random
using LightGraphs
using PeriodicGraphs
import PeriodicGraphs: ofs, vertex_permutation, LoopException
Expand All @@ -8,6 +7,13 @@ import StaticArrays: SVector
# using Aqua
# Aqua.test_all(PeriodicGraphs)

@static if VERSION < v"1.4-"
function only(t)
length(t) == 1 || throw(ArgumentError("Not exactly 1 element"))
return t[1]
end
end

@testset "PeriodicVertex" begin
@test_throws MethodError PeriodicVertex2D() # Always require a vertex identifier
@test iszero(ofs(PeriodicVertex2D(1)))
Expand Down Expand Up @@ -238,6 +244,7 @@ end
@test collect(edges(g)) == edgs
end


@testset "Neighbors" begin
g = PeriodicGraph3D(1)
@test add_vertices!(g, 2) == 2
Expand Down

2 comments on commit 8de97e2

@Liozou
Copy link
Owner Author

@Liozou Liozou commented on 8de97e2 Jul 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/17754

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 8de97e26cabb4942cf1e0af157008d646e986005
git push origin v0.1.0

Please sign in to comment.