Sha256: 50dd38aa9856406882c23b737048f80e25cb1543cb2635187cb80ce06aa5fd25

Contents?: true

Size: 1.89 KB

Versions: 129

Compression:

Stored size: 1.89 KB

Contents

#!/usr/bin/env ruby
# encoding: utf-8
gem 'minitest', '>= 5.0.0'
require 'minitest/autorun'
require_relative 'isogram'

# Common test data version: c59c2c4
class IsogramTest < Minitest::Test
  def test_empty_string
    # skip
    string = ''
    assert Isogram.is_isogram?(string)
  end

  def test_isogram_with_only_lower_case_characters
    skip
    string = 'isogram'
    assert Isogram.is_isogram?(string)
  end

  def test_word_with_one_duplicated_character
    skip
    string = 'eleven'
    refute Isogram.is_isogram?(string)
  end

  def test_longest_reported_english_isogram
    skip
    string = 'subdermatoglyphic'
    assert Isogram.is_isogram?(string)
  end

  def test_word_with_duplicated_character_in_mixed_case
    skip
    string = 'Alphabet'
    refute Isogram.is_isogram?(string)
  end

  def test_hypothetical_isogrammic_word_with_hyphen
    skip
    string = 'thumbscrew-japingly'
    assert Isogram.is_isogram?(string)
  end

  def test_isogram_with_duplicated_non_letter_character
    skip
    string = 'Hjelmqvist-Gryb-Zock-Pfund-Wax'
    assert Isogram.is_isogram?(string)
  end

  def test_made_up_name_that_is_an_isogram
    skip
    string = 'Emily Jung Schwartzkopf'
    assert Isogram.is_isogram?(string)
  end
  # Problems in exercism evolve over time, as we find better ways to ask
  # questions.
  # The version number refers to the version of the problem you solved,
  # not your solution.
  #
  # Define a constant named VERSION inside of the top level BookKeeping
  # module, which may be placed near the end of your file.
  #
  # In your file, it will look like this:
  #
  # module BookKeeping
  #   VERSION = 1 # Where the version number matches the one in the test.
  # end
  #
  # If you are curious, read more about constants on RubyDoc:
  # http://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/constants.html
  def test_bookkeeping
    skip
    assert_equal 2, BookKeeping::VERSION
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
trackler-2.0.6.41 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.40 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.39 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.38 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.37 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.36 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.35 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.34 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.33 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.32 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.31 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.30 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.29 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.28 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.27 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.26 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.25 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.24 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.23 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.6.22 tracks/ruby/exercises/isogram/isogram_test.rb