mirror of
https://github.com/yattee/yattee.git
synced 2024-12-25 15:03:41 +00:00
18 lines
476 B
Swift
18 lines
476 B
Swift
|
import XCTest
|
||
|
|
||
|
final class InstancesModelTests: XCTestCase {
|
||
|
func testStandardizedURL() throws {
|
||
|
let samples: [String: String] = [
|
||
|
"https://www.youtube.com/": "https://www.youtube.com",
|
||
|
"https://www.youtube.com": "https://www.youtube.com",
|
||
|
]
|
||
|
|
||
|
samples.forEach { url, standardized in
|
||
|
XCTAssertEqual(
|
||
|
InstancesModel.standardizedURL(url),
|
||
|
standardized
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
}
|