crypto-secret.cr/spec/crypto_secret_spec.cr

16 lines
350 B
Crystal
Raw Normal View History

2021-06-13 01:04:49 +02:00
require "./spec_helper"
2021-06-16 00:42:01 +02:00
require "../src/crypto-secret/test"
require "../src/crypto-secret"
2021-06-16 00:42:01 +02:00
test_secret_class Crypto::Secret::Not
test_secret_class Crypto::Secret::Bidet
describe Crypto::Secret do
it ".for" do
[:kgk, :key, :data, :not].each do |sym|
secret = Crypto::Secret.for sym, 2
secret.bytesize.should eq 2
end
end
end