From ffc3ffb7183ec80b96071324aeb8893b2b1a9370 Mon Sep 17 00:00:00 2001 From: darken Date: Fri, 7 Aug 2026 17:50:35 +0200 Subject: [PATCH] test(upgrade): Sweep locales in both flavours now the template is shared The template moved to main, so FOSS resolves per-language arrangements too and composes reordered titles for the first time. Running the sweep only for gplay would leave that path unguarded. --- .../capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt | 4 ++++ 1 file changed, 4 insertions(+) rename app/src/{testGplay => test}/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt (94%) diff --git a/app/src/testGplay/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt b/app/src/test/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt similarity index 94% rename from app/src/testGplay/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt rename to app/src/test/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt index 01eecde0..8c9704f9 100644 --- a/app/src/testGplay/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt +++ b/app/src/test/java/eu/darken/capod/common/upgrade/ui/BrandTitleTemplateLocalesTest.kt @@ -23,6 +23,10 @@ import java.util.Locale * A translated template is code the formatter executes, not inert text: a stray `%`, a `%3$s` or a * `%1$d` throws inside `getString` *before* the splice fallback can run, so no amount of defensive * splicing protects against it. This is the only place that failure mode is caught. + * + * Shared rather than gplay-only because the template now lives in `main`: both flavours resolve the + * same per-language arrangement, so FOSS composes reordered titles too (Estonian puts the qualifier + * first, giving "FOSS CAPod"). Each variant runs this against its own qualifier resource. */ @RunWith(RobolectricTestRunner::class) @Config(sdk = [33], application = TestApplication::class)