We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c2c4f commit b495d3dCopy full SHA for b495d3d
1 file changed
test/testBlocks.jl
@@ -1072,6 +1072,17 @@ function blobsStoresTestBlock!(fg)
1072
testData = rand(UInt8, 50)
1073
mhash = putBlob!(fs, testData)
1074
@test mhash isa DFG.Multihash
1075
+ # show(io, MIME"text/plain"(), ::Multihash)
1076
+ iobuf = IOBuffer()
1077
+ show(iobuf, MIME"text/plain"(), mhash)
1078
+ showstr = String(take!(iobuf))
1079
+ @test startswith(showstr, "multihash:")
1080
+ @test length(showstr) > length("multihash:")
1081
+ # decode(::Multihash)
1082
+ code, digest = DFG.decode(mhash)
1083
+ @test code == 0x12 # sha2_256
1084
+ @test length(digest) == 32
1085
+ @test DFG.Multihash(code, digest) == mhash
1086
@test hasBlob(fs, mhash)
1087
@test listBlobs(fs) == [mhash]
1088
# putBlob! is idempotent
0 commit comments