From 84e6cd15c9178f5a4a3afff11f6f5622199dd421 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Sun, 22 Oct 2017 23:32:37 -0400
Subject: [PATCH] chore: one of the unit tests didnt do any assertions.

---
 .../java/com/aparapi/runtime/Issue69Test.java     | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/test/java/com/aparapi/runtime/Issue69Test.java b/src/test/java/com/aparapi/runtime/Issue69Test.java
index f0b0aae5..8f2aa47a 100644
--- a/src/test/java/com/aparapi/runtime/Issue69Test.java
+++ b/src/test/java/com/aparapi/runtime/Issue69Test.java
@@ -1,12 +1,12 @@
 /**
  * Copyright (c) 2016 - 2017 Syncleus, Inc.
- *
+ * <p>
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,6 +17,7 @@ package com.aparapi.runtime;
 
 import com.aparapi.Kernel;
 import com.aparapi.Range;
+import org.junit.Assert;
 import org.junit.Test;
 
 public class Issue69Test {
@@ -35,8 +36,7 @@ public class Issue69Test {
             System.out.printf("%3d free = %10d\n", loop, Runtime.getRuntime().freeMemory());
             kernel.execute(Range.create(512, 64), 1);
             for (int i = 0; i < globalArray.length; ++i) {
-                if (globalArray[i] != i)
-                    System.err.println("Wrong!");
+                Assert.assertEquals("Wrong", i, globalArray[i]);
             }
         }
         for (int loop = 0; loop < 100; loop++) {
@@ -44,8 +44,7 @@ public class Issue69Test {
             System.out.printf("%3d free = %10d\n", loop, Runtime.getRuntime().freeMemory());
             kernel.execute(Range.create(512, 64), 2);
             for (int i = 0; i < globalArray.length; ++i) {
-                if (globalArray[i] != i)
-                    System.err.println("Wrong!");
+                Assert.assertEquals("Wrong", i, globalArray[i]);
             }
         }
     }
-- 
GitLab