You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2016/08/10 18:22:29 UTC

incubator-systemml git commit: [HOTFIX] Update DataFrame tests to 1-based ID column

Repository: incubator-systemml
Updated Branches:
  refs/heads/master 24d57ad2a -> 5f4b8bc3f


[HOTFIX] Update DataFrame tests to 1-based ID column


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/5f4b8bc3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/5f4b8bc3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/5f4b8bc3

Branch: refs/heads/master
Commit: 5f4b8bc3f295c82ef969dbb34e59a73b934acbc1
Parents: 24d57ad
Author: Deron Eriksson <de...@us.ibm.com>
Authored: Wed Aug 10 11:20:03 2016 -0700
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Wed Aug 10 11:20:03 2016 -0700

----------------------------------------------------------------------
 .../sysml/test/integration/mlcontext/MLContextTest.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/5f4b8bc3/src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextTest.java b/src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextTest.java
index f80b2a2..4afd275 100644
--- a/src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextTest.java
+++ b/src/test/java/org/apache/sysml/test/integration/mlcontext/MLContextTest.java
@@ -1001,12 +1001,12 @@ public class MLContextTest extends AutomatedTestBase {
 		DataFrame dataFrame = results.getDataFrame("M");
 		List<Row> list = dataFrame.collectAsList();
 		Row row1 = list.get(0);
-		Assert.assertEquals(0.0, row1.getDouble(0), 0.0);
+		Assert.assertEquals(1.0, row1.getDouble(0), 0.0);
 		Assert.assertEquals(1.0, row1.getDouble(1), 0.0);
 		Assert.assertEquals(2.0, row1.getDouble(2), 0.0);
 
 		Row row2 = list.get(1);
-		Assert.assertEquals(1.0, row2.getDouble(0), 0.0);
+		Assert.assertEquals(2.0, row2.getDouble(0), 0.0);
 		Assert.assertEquals(3.0, row2.getDouble(1), 0.0);
 		Assert.assertEquals(4.0, row2.getDouble(2), 0.0);
 	}
@@ -1021,12 +1021,12 @@ public class MLContextTest extends AutomatedTestBase {
 		DataFrame dataFrame = results.getDataFrame("M");
 		List<Row> list = dataFrame.collectAsList();
 		Row row1 = list.get(0);
-		Assert.assertEquals(0.0, row1.getDouble(0), 0.0);
+		Assert.assertEquals(1.0, row1.getDouble(0), 0.0);
 		Assert.assertEquals(1.0, row1.getDouble(1), 0.0);
 		Assert.assertEquals(2.0, row1.getDouble(2), 0.0);
 
 		Row row2 = list.get(1);
-		Assert.assertEquals(1.0, row2.getDouble(0), 0.0);
+		Assert.assertEquals(2.0, row2.getDouble(0), 0.0);
 		Assert.assertEquals(3.0, row2.getDouble(1), 0.0);
 		Assert.assertEquals(4.0, row2.getDouble(2), 0.0);
 	}