Skip to content

Commit 2712a41

Browse files
authored
add some tests (#5)
1 parent 970cafc commit 2712a41

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/runtests.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ using GraphProperties
22
using Test
33

44
@testset "GraphProperties.jl" begin
5-
# Write your tests here.
5+
@testset "construction, subtyping" begin
6+
@test PropertyComparison(==, Arboricity(), 2) isa GraphProperty{Bool}
7+
@test PropertyComparison(<=, Boxicity(), 2) isa GraphProperty{Bool}
8+
@test GraphIsChordal() isa GraphProperty{Bool}
9+
@test Arboricity() isa GraphProperty{Integer}
10+
@test FractionalChromaticNumber() isa GraphProperty{Real}
11+
@test DegreeSequence() isa GraphProperty{AbstractVector}
12+
end
613
end
714

815
using Aqua: Aqua

0 commit comments

Comments
 (0)