summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 11:37:05 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 11:37:05 +0200
commite8c73c0c45d439abd06f3b7bdf29e7f6962ae665 (patch)
treedaeef6546e27f71c4d16ed5ca90ef03a57cc5d80 /tests/run.lua
parentb5aefe45f551ba8844464cdf3afcffee5b81197d (diff)
Use default label feature fallbacks
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua12
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