diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua index 0c00dd1..ba5acd1 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -4367,6 +4367,18 @@ test("Cursor feedback falls back to the Cursor group", function() same("Cursor", host:highlight_groups().CleverFCursor.link) end) +test("Character and direct feedback fall back to the default label", function() + local host = MemoryHost.new() + local feedback = feedback_service.new(host) + + local results = feedback:evaluate_feature_links() + local groups = host:highlight_groups() + for _, group in ipairs({ "CleverFChar", "CleverFDirect" }) do + same("CleverFDefaultLabel", results[group].target) + same("CleverFDefaultLabel", groups[group].link) + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then |
