Stop printing a default for text-valued setting keys

An absent lang key does not mean English, it means follow the system language.
This commit is contained in:
maj00r
2026-09-04 21:36:13 +02:00
parent 4aec689059
commit bce008f0ed
2 changed files with 18 additions and 2 deletions

View File

@@ -18,6 +18,16 @@ public class SettingKeyCatalogTests
Assert.Equal("vsync = false", SettingKeyCatalog.Annotate("vsync"));
}
[Fact]
public void A_text_valued_key_is_shown_without_a_default()
{
// An absent lang means "follow the operating system", not "English", and an
// absent exe path means "go and find the binary" - neither has a default
// worth printing.
Assert.Equal("lang", SettingKeyCatalog.Annotate("lang"));
Assert.Equal("starter.exe.path", SettingKeyCatalog.Annotate("starter.exe.path"));
}
[Fact]
public void A_composite_or_unknown_key_is_shown_as_written()
{