Initial attempt at making rogue work with application overrides.

This commit is contained in:
Storm Dragon committed 2026-10-28 16:24:44 -04:00
1 parent 088f706cb4
commit 46dc520854
15 files changed
+1836 -111

No files matched your search

@@ -0,0 +1,21 @@
// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
package applicationoverrides
import "testing"
func TestRegionReadIncludesNameAndHandlesMissingInformation(t *testing.T) {
for _, trial := range []struct {
region Region
want string
}{
{Region{Name: "Health", Text: "12 of 12"}, "Health: 12 of 12"},
{Region{Name: "Health"}, "Health: Information unavailable"},
{Region{Text: "12 of 12"}, "12 of 12"},
} {
if got := trial.region.Read(); got != trial.want {
t.Fatalf("%q, want %q", got, trial.want)
}
}
}