Skip to content

Commit 5d39d9c

Browse files
committed
Fixed unit test.
Apparentally, no one likes the Windows GitHub client for a reason.
1 parent abb805f commit 5d39d9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/laytonsmith/core/functions/ArrayHandlingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.laytonsmith.core.Static;
77
import com.laytonsmith.core.constructs.CArray;
88
import com.laytonsmith.core.constructs.CInt;
9+
import com.laytonsmith.core.constructs.CString;
910
import com.laytonsmith.core.constructs.Construct;
1011
import com.laytonsmith.core.constructs.Target;
1112
import com.laytonsmith.core.environments.CommandHelperEnvironment;
@@ -124,7 +125,7 @@ public void testArraySContains() throws CancelCommandException {
124125
ArrayHandling.array_scontains a = new ArrayHandling.array_scontains();
125126
assertCEquals(C.onstruct(true), a.exec(Target.UNKNOWN, env, commonArray, C.onstruct(1)));
126127
assertCEquals(C.onstruct(false), a.exec(Target.UNKNOWN, env, commonArray, C.onstruct(55)));
127-
assertCEquals(C.onstruct(false), a.exec(Target.UNKNOWN, env, commonArray, C.onstruct("1")));
128+
assertCEquals(C.onstruct(false), a.exec(Target.UNKNOWN, env, commonArray, new CString("2", Target.UNKNOWN)));
128129
}
129130

130131
@Test(expected = Exception.class, timeout = 10000)

0 commit comments

Comments
 (0)