chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:33 +08:00
commit fc4fcbab58
1848 changed files with 472303 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import CodexBarCore
import Testing
@Suite(.serialized)
struct UsageFormatterLinuxTests {
@Test
func `rate-window formatting uses the standalone English fallback`() {
UsageFormatter.clearLocalizationProvider()
UsageFormatter.clearLocaleProvider()
#expect(UsageFormatter.usageLine(remaining: 25, used: 75, showUsed: false) == "25% left")
#expect(UsageFormatter.usageLine(remaining: 25, used: 75, showUsed: true) == "75% used")
#expect(UsageFormatter.usageLine(remaining: 0.75, used: 99.25, showUsed: false) == "<1% left")
}
}