@@ -6,42 +6,42 @@ final class PathTests: XCTestCase {
6
6
func testEmptyBaseURL( ) {
7
7
XCTAssertEqual ( path ( for: " Class " , with: " " ) , " Class " )
8
8
9
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " " ) , " (lhs:rhs: ) " )
9
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " " ) , " (lhs_rhs_ ) " )
10
10
}
11
11
12
12
func testRootDirectoryBaseURL( ) {
13
13
XCTAssertEqual ( path ( for: " Class " , with: " / " ) , " /Class " )
14
14
15
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " / " ) , " /(lhs:rhs: ) " )
15
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " / " ) , " /(lhs_rhs_ ) " )
16
16
}
17
17
18
18
func testCurrentDirectoryBaseURL( ) {
19
19
XCTAssertEqual ( path ( for: " Class " , with: " ./ " ) , " ./Class " )
20
20
21
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " ./ " ) , " ./(lhs:rhs: ) " )
21
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " ./ " ) , " ./(lhs_rhs_ ) " )
22
22
}
23
23
24
24
func testNestedSubdirectoryBaseURL( ) {
25
25
XCTAssertEqual ( path ( for: " Class " , with: " /path/to/directory " ) , " /path/to/directory/Class " )
26
26
XCTAssertEqual ( path ( for: " Class " , with: " /path/to/directory/ " ) , " /path/to/directory/Class " )
27
27
28
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " /path/to/directory " ) , " /path/to/directory/(lhs:rhs: ) " )
29
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " /path/to/directory/ " ) , " /path/to/directory/(lhs:rhs: ) " )
28
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " /path/to/directory " ) , " /path/to/directory/(lhs_rhs_ ) " )
29
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " /path/to/directory/ " ) , " /path/to/directory/(lhs_rhs_ ) " )
30
30
}
31
31
32
32
func testDomainBaseURL( ) {
33
33
XCTAssertEqual ( path ( for: " Class " , with: " https://example.com " ) , " https://example.com/Class " )
34
34
XCTAssertEqual ( path ( for: " Class " , with: " https://example.com/ " ) , " https://example.com/Class " )
35
35
36
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com " ) , " https://example.com/(lhs:rhs: ) " )
37
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/ " ) , " https://example.com/(lhs:rhs: ) " )
36
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com " ) , " https://example.com/(lhs_rhs_ ) " )
37
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/ " ) , " https://example.com/(lhs_rhs_ ) " )
38
38
}
39
39
40
40
func testDomainSubdirectoryBaseURL( ) {
41
41
XCTAssertEqual ( path ( for: " Class " , with: " https://example.com/docs " ) , " https://example.com/docs/Class " )
42
42
XCTAssertEqual ( path ( for: " Class " , with: " https://example.com/docs/ " ) , " https://example.com/docs/Class " )
43
43
44
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/docs " ) , " https://example.com/docs/(lhs:rhs: ) " )
45
- XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/docs/ " ) , " https://example.com/docs/(lhs:rhs: ) " )
44
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/docs " ) , " https://example.com/docs/(lhs_rhs_ ) " )
45
+ XCTAssertEqual ( path ( for: " (lhs:rhs:) " , with: " https://example.com/docs/ " ) , " https://example.com/docs/(lhs_rhs_ ) " )
46
46
}
47
47
}
0 commit comments