Skip to content

Commit 8f0e578

Browse files
committed
Add test for training without numPartitions
1 parent 254e8a4 commit 8f0e578

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

R/pkg/inst/tests/testthat/test_mllib_fpm.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ test_that("spark.fpGrowth", {
7171
collect(spark.freqItemsets(loaded_model)))
7272

7373
unlink(modelPath)
74+
75+
model_without_numpartitions <- spark.fpGrowth(data, minSupport = 0.3, minConfidence = 0.8)
76+
expect_equal(
77+
count(spark.freqItemsets(model_without_numpartitions)),
78+
count(spark.freqItemsets(model))
79+
)
80+
7481
})
7582

7683
sparkR.session.stop()

0 commit comments

Comments
 (0)