1 # frozen_string_literal: true
5 class TestAbbrev < Test::Unit::TestCase
7 words = %w[summer winter win ruby rules]
33 }, words.abbrev('ru'))
35 assert_equal words.abbrev, Abbrev.abbrev(words)
36 assert_equal words.abbrev('ru'), Abbrev.abbrev(words, 'ru')
40 words = ["abc", "abc\nd", "de"]