Skip to content

Commit

Permalink
Tests: correct some test cases for path separator
Browse files Browse the repository at this point in the history
The test expectations were pre-constructed with `:` ignoring the path
separator.  Alter the expectation to construct the value at run time to
match the actual results.
  • Loading branch information
compnerd committed May 8, 2022
1 parent 2fcf5d9 commit 75f8c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/BasicsTests/EnvironmentVariablesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ final class EnvironmentVariablesTests: XCTestCase {
XCTAssertEqual(env[key], ["a", "b"].joined(separator: pathDelimiter))

env.appendPath(key, value: "c")
XCTAssertEqual(env[key], ["a:b:c"].joined(separator: pathDelimiter))
XCTAssertEqual(env[key], ["a", "b", "c"].joined(separator: pathDelimiter))

env.appendPath(key, value: "")
XCTAssertEqual(env[key], ["a:b:c"].joined(separator: pathDelimiter))
XCTAssertEqual(env[key], ["a", "b", "c"].joined(separator: pathDelimiter))
}

func testProcess() throws {
Expand Down

0 comments on commit 75f8c26

Please sign in to comment.