chore: import upstream snapshot with attribution
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user