Skip to content

Commit 51343d6

Browse files
committed
Add tests for the functions
1 parent 8b723af commit 51343d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/runtests.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,20 @@ using Test
4444
@test size(data)[1] == samples
4545
@test size(data)[2] == features + 1
4646

47+
data = SyntheticDatasets.generate_friedman1(n_samples = samples,
48+
n_features = features)
49+
50+
@test size(data)[1] == samples
51+
@test size(data)[2] == features + 1
52+
53+
data = SyntheticDatasets.generate_friedman2(n_samples = samples)
54+
55+
@test size(data)[1] == samples
56+
@test size(data)[2] == 5
57+
58+
data = SyntheticDatasets.generate_friedman3(n_samples = samples)
59+
60+
@test size(data)[1] == samples
61+
@test size(data)[2] == 5
62+
4763
end

0 commit comments

Comments
 (0)