Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuraiAku committed Jan 28, 2024
1 parent bfb8d57 commit 71399f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_checksums.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@testset "checksums" begin
checksum= spdxchecksum("SHA1", pkgdir(SPDX), String["SPDX.spdx.json"], String[".git"])
@test checksum isa Vector{UInt8} # No good way to indepently verify that the calculation is correct.
verifcode= ComputePackageVerificationCode(pkgdir(SPDX), String["SPDX.spdx.json"], String[".git"])
@test verifcode isa SpdxPkgVerificationCodeV2 # No good way to indepently verify that the calculation is correct.

checksum= ComputeFileChecksum("SHA256", joinpath(pkgdir(SPDX), "Project.toml"))
@test checksum isa SpdxChecksumV2 # No good way to indepently verify that the calculation is correct.
end

0 comments on commit 71399f4

Please sign in to comment.