This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/main by this push:
     new 2cd782f72a [MINOR] Fix edge case tests to reflect new changes
2cd782f72a is described below

commit 2cd782f72a1f767e67c14022384fa50d7161b540
Author: Sebastian Baunsgaard <[email protected]>
AuthorDate: Tue Jan 30 19:34:33 2024 +0100

    [MINOR] Fix edge case tests to reflect new changes
---
 .../java/org/apache/sysds/test/component/frame/FrameCustomTest.java  | 5 ++---
 .../sysds/test/functions/transform/TransformEncodeDecodeTest.java    | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/sysds/test/component/frame/FrameCustomTest.java 
b/src/test/java/org/apache/sysds/test/component/frame/FrameCustomTest.java
index 9d6c7aa482..3387db56ab 100644
--- a/src/test/java/org/apache/sysds/test/component/frame/FrameCustomTest.java
+++ b/src/test/java/org/apache/sysds/test/component/frame/FrameCustomTest.java
@@ -35,7 +35,7 @@ public class FrameCustomTest {
                double maxp1 = Integer.MAX_VALUE + 1.0;
                MatrixBlock mb = TestUtils.generateTestMatrixBlock(100, 100, 
maxp1, maxp1, 1.0, 23);
                FrameBlock f = DataConverter.convertToFrameBlock(mb);
-               assertTrue(f.getSchema()[0] == ValueType.INT64);
+               assertTrue(f.getSchema()[0] == ValueType.FP64);
        }
 
        @Test
@@ -50,8 +50,7 @@ public class FrameCustomTest {
        public void castErrorValue() {
                MatrixBlock mb = new MatrixBlock(10, 10, 
Double.parseDouble("2.572306572E9"));
                FrameBlock f = DataConverter.convertToFrameBlock(mb);
-               assertTrue(f.getSchema()[0] == ValueType.INT64);
-
+               assertTrue(f.getSchema()[0] == ValueType.FP64);
        }
 
        @Test
diff --git 
a/src/test/java/org/apache/sysds/test/functions/transform/TransformEncodeDecodeTest.java
 
b/src/test/java/org/apache/sysds/test/functions/transform/TransformEncodeDecodeTest.java
index 089fd78349..762167625d 100644
--- 
a/src/test/java/org/apache/sysds/test/functions/transform/TransformEncodeDecodeTest.java
+++ 
b/src/test/java/org/apache/sysds/test/functions/transform/TransformEncodeDecodeTest.java
@@ -114,7 +114,7 @@ public class TransformEncodeDecodeTest extends 
AutomatedTestBase {
                                SCRIPT_DIR + TEST_DIR + SPEC, output("FO")};
 
                        // run test
-                       LOG.error(runTest(null));
+                       runTest(null);
 
                        // compare matrices (values recoded to identical codes)
                        FrameReader reader = 
FrameReaderFactory.createFrameReader(FileFormat.safeValueOf(fmt));

Reply via email to