Skip to content

Commit

Permalink
test for adj mat
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Mar 16, 2022
1 parent cbbe55a commit dff9ce1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SQLiteGraph"
uuid = "de2defd0-d76e-464a-9029-1d71e199ae58"
authors = ["joshday <[email protected]> and contributors"]
version = "0.2.1"
version = "0.2.2"

[deps]
DBInterface = "a10d1c49-ce27-4219-8d33-6db1a4562965"
Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ end
@test length(collect(db[:,:,"type"])) == 2
@test length(collect(db[:,:,:])) == 3
end
@testset "Adj Matrix" begin
m = SQLiteGraph.adjacency_matrix(db, "type")
@test sum(m) == 2
@test m[1, 2]
@test m[1, 3]

m2 = SQLiteGraph.adjacency_matrix(db, "type 2")
@test sum(m2) == 1
@test m2[1, 4]
end
end

4 comments on commit dff9ce1

@joshday
Copy link
Member Author

Choose a reason for hiding this comment

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

@joshday
Copy link
Member Author

Choose a reason for hiding this comment

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

@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/56722

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.2.2 -m "<description of version>" dff9ce12b7a07de5120b33ba50190858915ce6e7
git push origin v0.2.2

@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 updated: JuliaRegistries/General/56722

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.2.2 -m "<description of version>" dff9ce12b7a07de5120b33ba50190858915ce6e7
git push origin v0.2.2

Please sign in to comment.