MacStd/Tests/Tests.mm
Simon Rozman 7374e0dc38 unistd: add getcwd
Signed-off-by: Simon Rozman <simon@rozman.si>
2023-09-20 03:24:39 +02:00

41 lines
824 B
Plaintext

/*
SPDX-License-Identifier: MIT
Copyright © 2023 Amebis
*/
#import <XCTest/XCTest.h>
#include "../include/MacStd/dyld.hpp"
#include "../include/MacStd/unistd.hpp"
@interface Tests : XCTestCase
@end
@implementation Tests
- (void)setUp {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
- (void)test_NSGetExecutablePath {
std::string path;
XCTAssert(_NSGetExecutablePath(path) == 0);
}
- (void)test_getcwd {
std::string path;
XCTAssert(getcwd(path));
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}
@end