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.1.0.1 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.1.0.0 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.55 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.54 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.53 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.52 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.51 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.50 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.49 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.48 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.47 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.46 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.45 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.44 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.43 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.42 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.41 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.40 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.39 tracks/ruby/exercises/isogram/isogram_test.rb
trackler-2.0.8.38 tracks/ruby/exercises/isogram/isogram_test.rb