Sha256: 4df0cfb1873e8d49e680168abe18357d0854df59d903b7cf702ff989ce32c167

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

require_relative 'test_helper.rb'

require 'jisho.rb'

class JishoTest < MiniTest::Unit::TestCase
  def test_jisho_check_returns_misspelled_words
    misspellings = Jisho.check 'iincorrect spellingg'

    refute_empty misspellings
    assert_includes misspellings.words, 'iincorrect'
    assert_includes misspellings.words, 'spellingg'
  end

  def test_jisho_check_ignores_non_misspelled_words
    misspellings = Jisho.check 'correct spelling'

    assert_empty misspellings
    refute_includes misspellings.words, 'correct'
    refute_includes misspellings.words, 'spelling'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jisho-0.1.1 test/jisho_test.rb