Sha256: a953b31e7bba51889b5a70fc16826b676dc89f8c6c1d5e269924406ab13f5aec

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

require "#{File.dirname(__FILE__)}/../test_helper"

class SpellTest < Test::Unit::TestCase

  def test_load_errors_are_rescued
    # XXX don't know how to test this sanely
  end
  
  def test_spelling
    assert_equal nil, Ultrasphinx::Spell.correct("correct words")
    assert_equal "garbled words", Ultrasphinx::Spell.correct("glarbled words")
  end  

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ultrasphinx-1.5.3 test/integration/spell_test.rb
ultrasphinx-1.6.7 test/integration/spell_test.rb
ultrasphinx-1.7 test/integration/spell_test.rb
ultrasphinx-1.8 test/integration/spell_test.rb
ultrasphinx-1.6 test/integration/spell_test.rb