class DmenuTest

Public Instance Methods

test_1() click to toggle source
# File lib/test.rb, line 8
def test_1
    assert_equal(10, Dmenu::scrunch("012345678901234567890", 10).width)
end
test_2() click to toggle source
# File lib/test.rb, line 11
def test_2
    assert(Dmenu::scrunch("患部で止まってすぐ溶ける ~ 狂気の優曇華院 (03:04)", 10).width <= 10)
end
test_3() click to toggle source
# File lib/test.rb, line 14
def test_3
    assert_not_nil(Dmenu::dmenu(%w<a b c>))
end