From 75f8c26c8713abd270edf378c8270b2564f318a9 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 5 May 2022 18:55:34 -0700 Subject: [PATCH] Tests: correct some test cases for path separator 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. --- Tests/BasicsTests/EnvironmentVariablesTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/BasicsTests/EnvironmentVariablesTests.swift b/Tests/BasicsTests/EnvironmentVariablesTests.swift index e1db26ce6ab..24e05a5ff98 100644 --- a/Tests/BasicsTests/EnvironmentVariablesTests.swift +++ b/Tests/BasicsTests/EnvironmentVariablesTests.swift @@ -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 {