Sha256: 961be8e06c521189982eb9e579ddf497aadb758c4b583a31e544c2eacb7a8a0c

Contents?: true

Size: 952 Bytes

Versions: 396

Compression:

Stored size: 952 Bytes

Contents

local is_isogram = require 'isogram'

describe('isogram', function()
  it('should identify simple isograms', function()
    assert.is_true(is_isogram('duplicates'))
    assert.is_true(is_isogram('subdermatoglyphic'))
  end)

  it('should identify words with repeated letters as non-isograms', function()
    assert.is_false(is_isogram('eleven'))
  end)

  it('should be case insensitive', function()
    assert.is_false(is_isogram('Alphabet'))
  end)

  it('should allow punctuations in isograms', function()
    assert.is_true(is_isogram('thumbscrew-japingly'))
  end)

  it('should allow repeated punctuation in isograms', function()
    assert.is_true(is_isogram('Hjelmqvist-Gryb-Zock-Pfund-Wax'))
  end)

  it('should identify non-isogram sentences', function()
    assert.is_false(is_isogram('the quick brown fox'))
  end)

  it('should identify isogram sentences', function()
    assert.is_true(is_isogram('Emily Jung Schwartzkopf'))
  end)
end)

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.179 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.178 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.177 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.176 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.175 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.174 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.173 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.172 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.171 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.170 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.169 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.167 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.166 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.165 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.164 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.163 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.162 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.161 tracks/lua/exercises/isogram/isogram_spec.lua
trackler-2.2.1.160 tracks/lua/exercises/isogram/isogram_spec.lua