sodium.cr/spec/spec_helper.cr

10 lines
160 B
Crystal

require "spec"
require "../src/sodium"
def check_wiped(buf : Bytes)
GC.collect
buf.each do |b|
raise "not wiped #{buf.inspect}" if b != 0_u8
end
end