Skip to content

Commit

Permalink
add R test
Browse files Browse the repository at this point in the history
  • Loading branch information
krasinski authored and valenad1 committed May 3, 2024
1 parent 5b35996 commit c3757fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions h2o-r/tests/testdir_parser/runit_parse_zstd.R
@@ -0,0 +1,14 @@
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")

test.parseExportZSTD<- function() {
f1 <- h2o.importFile(locate("smalldata/glm_test/gaussian_20cols_10000Rows.csv"))

target <- file.path(sandbox(), "gaussian_20cols_10000Rows.csv.zst")
h2o.exportFile(f1, target)

f2 <- h2o.importFile(target)
compareFrames(f1, f2, prob=1)
}

doTest("Test ZSTD parser and export", test.parseExportZSTD)

0 comments on commit c3757fc

Please sign in to comment.