Mercurial > hg > truffle
changeset 10885:3f43462ce829
Work around missing support for boolean[] in junit.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 26 Jul 2013 12:10:33 +0200 |
parents | fe49e5121768 |
children | 1b800f44ac0c |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Fri Jul 26 12:09:17 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Fri Jul 26 12:10:33 2013 +0200 @@ -30,6 +30,7 @@ import java.util.concurrent.*; import org.junit.*; +import org.junit.internal.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.code.CallingConvention.Type; @@ -193,6 +194,8 @@ Assert.assertArrayEquals((long[]) expected, (long[]) actual); } else if (expected instanceof double[]) { Assert.assertArrayEquals((double[]) expected, (double[]) actual, 0.0d); + } else if (expected instanceof boolean[]) { + new ExactComparisonCriteria().arrayEquals(null, expected, actual); } else if (expected instanceof Object[]) { Assert.assertArrayEquals((Object[]) expected, (Object[]) actual); } else {