Skip to content

Commit 3ac6598

Browse files
committed
Exclude datasets test for wasm/wasi
1 parent cc91e31 commit 3ac6598

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/cluster/kmeans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ mod tests {
469469
all(target_arch = "wasm32", not(target_os = "wasi")),
470470
wasm_bindgen_test::wasm_bindgen_test
471471
)]
472+
#[cfg(feature = "datasets")]
472473
#[test]
473474
fn fit_predict_iris() {
474475
let x = DenseMatrix::from_2d_array(&[

src/ensemble/random_forest_classifier.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ mod tests {
634634
wasm_bindgen_test::wasm_bindgen_test
635635
)]
636636
#[test]
637+
#[cfg(feature = "datasets")]
637638
fn fit_predict_iris() {
638639
let x = DenseMatrix::from_2d_array(&[
639640
&[5.1, 3.5, 1.4, 0.2],

src/tree/decision_tree_classifier.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ mod tests {
919919
wasm_bindgen_test::wasm_bindgen_test
920920
)]
921921
#[test]
922+
#[cfg(feature = "datasets")]
922923
fn fit_predict_iris() {
923924
let x: DenseMatrix<f64> = DenseMatrix::from_2d_array(&[
924925
&[5.1, 3.5, 1.4, 0.2],

0 commit comments

Comments
 (0)