Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ using Test

const testdir = dirname(@__FILE__)


@testset "StaticGraphs" begin

hu = loadgraph(joinpath(testdir, "testdata", "house-uint8.jsg"), SGFormat())
Expand All @@ -24,9 +23,9 @@ const testdir = dirname(@__FILE__)
@test sprint(show, sg) == "{5, 6} undirected simple static {UInt8, UInt8} graph"
@test sprint(show, sgu) == "{5, 6} undirected simple static {UInt8, UInt8} graph"
testfn(fn, args...) =
@inferred(fn(hu, args...)) ==
@inferred(fn(sg, args...)) ==
@inferred(fn(sgu, args...)) ==
@inferred(fn(hu, args...)) ==
@inferred(fn(sg, args...)) ==
@inferred(fn(sgu, args...)) ==
fn(g, args...)

@test hu == sg == sgu
Expand Down Expand Up @@ -87,9 +86,9 @@ const testdir = dirname(@__FILE__)
dhu = loadgraph(joinpath(testdir, "testdata", "pathdg-uint8.jsg"), SDGFormat())

dtestfn(fn, args...) =
@inferred(fn(dhu, args...)) ==
@inferred(fn(dsg, args...)) ==
@inferred(fn(dsgu, args...)) ==
@inferred(fn(dhu, args...)) ==
@inferred(fn(dsg, args...)) ==
@inferred(fn(dsgu, args...)) ==
fn(dg, args...)

@test dhu == dsg == dsgu
Expand Down
Loading