From 7ca0040a65401faedf395b988b90fad4f90e5702 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 11 Oct 2022 10:21:09 -0700 Subject: [PATCH] Tests: fix AMFEcmaArray test on cpp --- test/src/feathers/amfio/AMFEcmaArrayTest.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/feathers/amfio/AMFEcmaArrayTest.hx b/test/src/feathers/amfio/AMFEcmaArrayTest.hx index 89135a7..3cd8a7d 100644 --- a/test/src/feathers/amfio/AMFEcmaArrayTest.hx +++ b/test/src/feathers/amfio/AMFEcmaArrayTest.hx @@ -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); @@ -446,7 +446,7 @@ class AMFEcmaArrayTest extends Test { var expectedKeys:Array = [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);