Sha256: d32b579fb44a67304f7ed4c6fffdf0b843d6a5f5be7ca38143b4986312c7ed97

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

#!/usr/bin/env ruby

require 'dmenu'
require 'test/unit'

class DmenuTest < Test::Unit::TestCase
    include Dmenu
    def test_1
        assert_equal(10, Dmenu::scrunch("012345678901234567890", 10).width)
    end
    def test_2
        assert(Dmenu::scrunch("患部で止まってすぐ溶ける ~ 狂気の優曇華院 (03:04)", 10).width <= 10)
    end
    def test_3
        assert_not_nil(Dmenu::dmenu(%w<a b c>))
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
markw-dmenu-1.2.0 lib/test.rb
markw-dmenu-1.1.0 lib/test.rb