mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Open videos via URL scheme
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import XCTest
|
||||
|
||||
final class IntFormatTests: XCTestCase {
|
||||
func testFormattedAsAbbreviation() throws {
|
||||
let samples: [Int: String] = [
|
||||
1: "1",
|
||||
999: "999",
|
||||
1000: "1K",
|
||||
1101: "1,1K",
|
||||
12345: "12,3K",
|
||||
123_456: "123,5K",
|
||||
123_626_789: "123,6M"
|
||||
]
|
||||
|
||||
samples.forEach { value, formatted in
|
||||
XCTAssertEqual(value.formattedAsAbbreviation(), formatted)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user