sodium.cr/spec/spec_helper.cr

10 lines
160 B
Crystal
Raw Normal View History

2017-07-12 05:13:52 +02:00
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