diff --git a/test/test_checksums.jl b/test/test_checksums.jl index 9a29b19..46593f6 100644 --- a/test/test_checksums.jl +++ b/test/test_checksums.jl @@ -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 \ No newline at end of file