Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
df8a6dc9
Commit
df8a6dc9
authored
May 08, 2015
by
Miro Knejp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix objc test case for x86_64 simulator devices
parent
4edf461a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
test-suite/handwritten-src/objc/tests/DBMapRecordTests.mm
test-suite/handwritten-src/objc/tests/DBMapRecordTests.mm
+4
-3
No files found.
test-suite/handwritten-src/objc/tests/DBMapRecordTests.mm
View file @
df8a6dc9
...
...
@@ -82,9 +82,10 @@
-
(
void
)
checkObjcMap
:(
NSDictionary
*
)
objcMap
{
XCTAssertEqual
([
objcMap
count
],
(
NSUInteger
)
3
,
@"Count 3 expected, actual: %lu"
,
(
unsigned
long
)[
objcMap
count
]);
XCTAssertEqual
([
objcMap
objectForKey
:
@"String1"
],
@1
,
@"
\"
String1 -> 1
\"
expected"
);
XCTAssertEqual
([
objcMap
objectForKey
:
@"String2"
],
@2
,
@"
\"
String2 -> 2
\"
expected"
);
XCTAssertEqual
([
objcMap
objectForKey
:
@"String3"
],
@3
,
@"
\"
String3 -> 3
\"
expected"
);
// Must test with exact NSNumber constructor as used in DJIMarshal otherwise NSNumber comparison fails on x86_64 simulator devices
XCTAssertEqual
([
objcMap
objectForKey
:
@"String1"
],
@
((
int64_t
)
1
),
@"
\"
String1 -> 1
\"
expected"
);
XCTAssertEqual
([
objcMap
objectForKey
:
@"String2"
],
@
((
int64_t
)
2
),
@"
\"
String2 -> 2
\"
expected"
);
XCTAssertEqual
([
objcMap
objectForKey
:
@"String3"
],
@
((
int64_t
)
3
),
@"
\"
String3 -> 3
\"
expected"
);
}
-
(
std
::
unordered_map
<
std
::
string
,
int64_t
>
)
getCppMap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment