Sha256: 872f0ccf9a32f178c11c080e49d0d04a584a23beaec725f31accb51eef4db9ee
Contents?: true
Size: 773 Bytes
Versions: 5
Compression:
Stored size: 773 Bytes
Contents
# vim:ft=ruby:fileencoding=utf-8 require File.expand_path('../helper', __FILE__) class TestAlgorithms < Test::Unit::TestCase def test_basic_de assert_algorithm 't35t', 'test', :basic_de assert_algorithm 'Ds1P@dF', 'Da steht ein Pferd auf dem Flur', :basic_de end def test_basic_en assert_algorithm "t35t", 'test', :basic_en assert_algorithm "ti1p4u2", 'there is one problem for us, too', :basic_en end def test_secure assert_algorithm '$78bRkT5eT0n5Fk', 'test', :secure assert_algorithm '5P2fWb2Cm0Wf%$5', 'my cat is cute', :secure end protected def assert_algorithm(expected, input, algorithm) assert_nothing_raised do pwd = ToPass::Base.new(input, algorithm).to_s assert_equal expected, pwd end end end
Version data entries
5 entries across 5 versions & 1 rubygems