Skip to content

Commit

Permalink
revert whitspace edits [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Feb 4, 2025
1 parent 3ba8a1b commit 7a87cf8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.apache.sysds.test.TestUtils;
import org.junit.Test;


public class TransformCSVFrameEncodeReadTest extends AutomatedTestBase {
protected static final Log LOG = LogFactory.getLog(TransformCSVFrameEncodeReadTest.class.getName());

Expand Down Expand Up @@ -136,15 +137,16 @@ private void runTransformTest( ExecMode rt, String ofmt, boolean subset, boolean
fullDMLScriptName = HOME + TEST_NAME1 + ".dml";
programArgs = new String[]{"-args",
DATASET_DIR + DATASET, String.valueOf(nrows), output("R") };

String stdOut = runTest(null).toString();

//read input/output and compare
FrameReader reader2 = parRead ?
new FrameReaderTextCSVParallel( new FileFormatPropertiesCSV() ) :
new FrameReaderTextCSV( new FileFormatPropertiesCSV() );
FrameBlock fb2 = reader2.readFrameFromHDFS(output("R"), -1L, -1L);
String[] fromDisk = DataConverter.toString(fb2).split("\n");
String[] printed = stdOut.split("\n");

boolean equal = true;
String err = "";
for(int i = 0; i < fromDisk.length; i++){
Expand All @@ -156,6 +158,7 @@ private void runTransformTest( ExecMode rt, String ofmt, boolean subset, boolean
}
if(!equal)
fail(err);

}
catch(Exception ex) {
ex.printStackTrace();
Expand Down

0 comments on commit 7a87cf8

Please sign in to comment.