From 60e98f3ba513b3d4945986edcc274bb6712e77d2 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Wed, 5 Aug 2015 21:12:37 +0200 Subject: [PATCH] Add assertion via shell command to testCurrentDirectory_CanChange. --- SwiftShell2.xcodeproj/project.pbxproj | 2 +- SwiftShellTests/Context_Tests.swift | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SwiftShell2.xcodeproj/project.pbxproj b/SwiftShell2.xcodeproj/project.pbxproj index b4ef59b..07b7a46 100644 --- a/SwiftShell2.xcodeproj/project.pbxproj +++ b/SwiftShell2.xcodeproj/project.pbxproj @@ -117,6 +117,7 @@ BA2E3B231B5C34DD001ED175 /* SwiftShellTests */ = { isa = PBXGroup; children = ( + BAE03DBA1B5C6B7200D731A0 /* Context_Tests.swift */, BA2E3B391B5C3635001ED175 /* Command_Tests.swift */, BA2E3B3A1B5C3635001ED175 /* FileHandle_Tests.swift */, BA2E3B3B1B5C3635001ED175 /* Files_Tests.swift */, @@ -128,7 +129,6 @@ BA2E3B421B5C3635001ED175 /* XCTestCase_Additions.swift */, BA2E3B3D1B5C3635001ED175 /* shorttext.txt */, BA2E3B261B5C34DD001ED175 /* Info.plist */, - BAE03DBA1B5C6B7200D731A0 /* Context_Tests.swift */, ); path = SwiftShellTests; sourceTree = ""; diff --git a/SwiftShellTests/Context_Tests.swift b/SwiftShellTests/Context_Tests.swift index df6e4d6..6583263 100644 --- a/SwiftShellTests/Context_Tests.swift +++ b/SwiftShellTests/Context_Tests.swift @@ -19,7 +19,6 @@ class Context_Tests: XCTestCase { main.currentdirectory = "/tmp" XCTAssertEqual( main.currentdirectory, "/private/tmp" ) - // TODO: XCTAssertEqual( $("pwd"), "/tmp" ) + XCTAssertEqual( main.$("/bin/pwd"), "/tmp\n" ) } - }