rdb man: Titel der Themen-Seiten (dashline, headline ...) aus .TH
This commit is contained in:
@@ -481,6 +481,12 @@ class HelpTest < RdbCase
|
||||
assert_equal "\e[3;8H", rdb('cursor', '3', '8')
|
||||
end
|
||||
|
||||
def test_man_topic_pages_get_their_title
|
||||
assert_equal 'dash line', rdb('man', 'dashline').lines.first.chomp
|
||||
assert_equal 'head line', rdb('man', 'headline').lines.first.chomp
|
||||
assert_match(/\Arow -- Make a new table/, rdb('man', 'row'))
|
||||
end
|
||||
|
||||
def test_testall_mentions_every_command
|
||||
script = File.read(File.join(DEMO, 'testall.cmds'))
|
||||
names = data(rdb('commands')).map(&:first)
|
||||
|
||||
Reference in New Issue
Block a user