Sha256: 93e26f0ae4cd86be50b41560ce87684f544171c23ad8a2d54ea5cb665b06cce4

Contents?: true

Size: 315 Bytes

Versions: 129

Compression:

Stored size: 315 Bytes

Contents

require 'generator/exercise_case'

class CryptoSquareCase < Generator::ExerciseCase

  def workload
    indent_lines([plaintext_setter, assertion], 4)
  end

  private

  def plaintext_setter
    "plaintext = '#{plaintext}'"
  end

  def assertion
    assert_equal { "Crypto.new(plaintext).ciphertext" }
  end

end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.97 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.96 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.95 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.94 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.93 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.92 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.91 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.90 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.89 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.88 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.87 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.86 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.85 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.84 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.83 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.82 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.81 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.80 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb
trackler-2.2.1.79 tracks/ruby/exercises/crypto-square/.meta/generator/crypto_square_case.rb