-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7d01a7
commit 6d7c7db
Showing
6 changed files
with
37 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0. | ||
|
||
import XCTest | ||
@testable import AwsCommonRuntimeKit | ||
import AwsCCommon | ||
|
||
class UtilitiesTests: XCBaseTestCase { | ||
|
||
func testStringArrayToByteCursorArray() { | ||
let strings1 = ["a", "b"] | ||
withByteCursorArrayFromStringArray(strings1) { cursors, len in | ||
XCTAssertEqual(len, 2) | ||
for i in 0..<len { | ||
withUnsafePointer(to: cursors[i]) { pointer in | ||
XCTAssertTrue(aws_byte_cursor_is_valid(pointer)) | ||
} | ||
} | ||
} | ||
|
||
let strings2: [String] = [] | ||
withByteCursorArrayFromStringArray(strings2) { cursors, len in | ||
XCTAssertEqual(len, 0) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-c-sdkutils
updated
2 files
+1 −1 | include/aws/sdkutils/endpoints_rule_engine.h | |
+1 −1 | source/endpoints_rule_engine.c |