onnxruntime/objectivec/test/ort_env_test.mm
Edward Chen d21304ceb0
Initial Objective-C API (#7366)
Initial implementation of an Objective-C API.
2021-04-27 10:06:30 -07:00

24 lines
423 B
Text

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <XCTest/XCTest.h>
#import "onnxruntime/ort_env.h"
NS_ASSUME_NONNULL_BEGIN
@interface ORTEnvTest : XCTestCase
@end
@implementation ORTEnvTest
- (void)testInitOk {
NSError* err = nil;
ORTEnv* env = [[ORTEnv alloc] initWithError:&err];
XCTAssertNotNil(env);
XCTAssertNil(err);
}
@end
NS_ASSUME_NONNULL_END