Class: Solitaire::TestCipher
- Defined in:
- lib/quiz1/t/solutions/Moses Hohman/test_cipher.rb
Instance Method Summary collapse
Instance Method Details
#test_crypt_idempotent ⇒ Object
61 62 63 64 65 66 |
# File 'lib/quiz1/t/solutions/Moses Hohman/test_cipher.rb', line 61 def test_crypt_idempotent cipher = Cipher.new("GLNCQ MJAFF FVOMB JIYCB") assert_equal("decrypt", cipher.mode) assert_equal("CODEI NRUBY LIVEL ONGER", cipher.crypt) assert_equal("CODEI NRUBY LIVEL ONGER", cipher.crypt) end |