MacStd/Tests/Tests.mm
Simon Rozman 57d8dbbd97 Bump Copyright year
Signed-off-by: Simon Rozman <simon@rozman.si>
2024-01-06 10:56:02 +01:00

41 lines
807 B
Plaintext

/*
SPDX-License-Identifier: MIT
Copyright © 2023-2024 Amebis
*/
#import <XCTest/XCTest.h>
#include <MacStd/dyld.hpp>
#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