rdb man: Titel der Themen-Seiten (dashline, headline ...) aus .TH

This commit is contained in:
wkh
2026-10-11 23:56:05 +02:00
parent 6b9810b075
commit 2e03c0a440
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -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)