Skip to content

Commit

Permalink
Tests: fix AMFEcmaArray test on cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Oct 11, 2022
1 parent a302e43 commit 7ca0040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/feathers/amfio/AMFEcmaArrayTest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class AMFEcmaArrayTest extends Test {
var expectedKeys = ["one", "two", "three"];
var expectedValues = [1, 2, 3];
for (key => value in array) {
#if flash
#if (flash || cpp)
// string keys are not guaranteed to be in any particular order
var keyIndex = expectedKeys.indexOf(key);
Assert.notEquals(-1, keyIndex);
Expand All @@ -446,7 +446,7 @@ class AMFEcmaArrayTest extends Test {
var expectedKeys:Array<Dynamic> = [0, 1, 2, 3, 4, "one", "two", "three"];
var expectedValues = [3, 1, 4, 1, 5, 1, 2, 3];
for (key => value in array) {
#if flash
#if (flash || cpp)
if ((key is String)) {
// string keys are not guaranteed to be in any particular order
var keyIndex = expectedKeys.indexOf(key);
Expand Down

0 comments on commit 7ca0040

Please sign in to comment.