aerospace fork
Something went wrong. Try again.
611 B · 20 lines
Swift
at main
123456789101112131415161718192021@testable import AppBundleimport Commonimport XCTest
@MainActorfinal class FalseCommandTest: XCTestCase { override func setUp() async throws { setUpWorkspacesForTests() }
func testParse() { testParseSingleCommandSucc("false", FalseCmdArgs(rawArgs: [])) testParseCommandFail("false foo", msg: "ERROR: Unknown argument 'foo'", exitCode: 2)
testParseCommandHelp("false -h") testParseCommandHelp("false --help") }
func testExitCode() async { assertEquals(await parseCommand("false").cmdOrDie.run(.defaultEnv, .emptyStdin).exitCode.rawValue, 1) }}