Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Added all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Maruseac committed Mar 20, 2011
1 parent 74ec1f8 commit 40f177e
Show file tree
Hide file tree
Showing 50 changed files with 751 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/1/dump.txt
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
2
C1 C2
4
outlook discret 3 sunny overcast rain
temperature numeric
humidity numeric
windy discret 2 true false
0 0 3 0 1 2
1 2 3 70 80 0
2 -1 0
3 0 0
4 1 0
5 0 0
6 3 2 0 1
7 1 0
8 0 0
12 changes: 12 additions & 0 deletions tests/1/out_ascii_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
outlook = sunny
humidity < 80
==> C1
humidity >= 80
==> C2
outlook = overcast
==> C1
outlook = rain
windy = true
==> C2
windy = false
==> C1
12 changes: 12 additions & 0 deletions tests/1/out_ascii_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
outlook = sunny
humidity < 80
==> C1
humidity >= 80
==> C2
outlook = overcast
==> C1
outlook = rain
windy = true
==> C2
windy = false
==> C1
14 changes: 14 additions & 0 deletions tests/1/out_ascii_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
outlook = sunny
humidity < 70
==> unknown
humidity < 80
==> C1
humidity >= 80
==> C2
outlook = overcast
==> C1
outlook = rain
windy = true
==> C2
windy = false
==> C1
14 changes: 14 additions & 0 deletions tests/1/out_ascii_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
outlook = sunny
humidity < 70
==> unknown
humidity < 80
==> C1
humidity >= 80
==> C2
outlook = overcast
==> C1
outlook = rain
windy = true
==> C2
windy = false
==> C1
15 changes: 15 additions & 0 deletions tests/1/out_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
2
C1 C2
4
outlook discret 3 sunny overcast rain
temperature numeric
humidity numeric
windy discret 2 true false
0 0 3 0 1 2
1 2 2 80 0
2 0 0
3 1 0
4 0 0
5 3 2 0 1
6 1 0
7 0 0
15 changes: 15 additions & 0 deletions tests/1/out_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
2
C1 C2
4
outlook discret 3 sunny overcast rain
temperature numeric
humidity numeric
windy discret 2 true false
0 0 3 0 1 2
1 2 2 80 0
2 0 0
3 1 0
4 0 0
5 3 2 0 1
6 1 0
7 0 0
17 changes: 17 additions & 0 deletions tests/1/out_dot_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
graph {
outlook0 [label=outlook][shape=box];
humidity1 [label=humidity][shape=box];
C12 [label=C1];
humidity1 -- C12 [label="<80"][fontsize=10];
C23 [label=C2];
humidity1 -- C23[label=">=80"][fontsize=10];
outlook0 -- humidity1[label="sunny"][fontsize=10];
C14 [label=C1];
outlook0 -- C14[label="overcast"][fontsize=10];
windy5 [label=windy][shape=box];
C26 [label=C2];
windy5 -- C26[label="true"][fontsize=10];
C17 [label=C1];
windy5 -- C17[label="false"][fontsize=10];
outlook0 -- windy5[label="rain"][fontsize=10];
}
Binary file added tests/1/out_dot_div_maj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions tests/1/out_dot_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
graph {
outlook0 [label=outlook][shape=box];
humidity1 [label=humidity][shape=box];
C12 [label=C1];
humidity1 -- C12 [label="<80"][fontsize=10];
C23 [label=C2];
humidity1 -- C23[label=">=80"][fontsize=10];
outlook0 -- humidity1[label="sunny"][fontsize=10];
C14 [label=C1];
outlook0 -- C14[label="overcast"][fontsize=10];
windy5 [label=windy][shape=box];
C26 [label=C2];
windy5 -- C26[label="true"][fontsize=10];
C17 [label=C1];
windy5 -- C17[label="false"][fontsize=10];
outlook0 -- windy5[label="rain"][fontsize=10];
}
Binary file added tests/1/out_dot_div_prb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions tests/1/out_dot_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
graph {
outlook0 [label=outlook][shape=box];
humidity1 [label=humidity][shape=box];
unknown2 [label=unknown];
humidity1 -- unknown2 [label="<70"][fontsize=10];
C13 [label=C1];
humidity1 -- C13 [label="<80"][fontsize=10];
C24 [label=C2];
humidity1 -- C24[label=">=80"][fontsize=10];
outlook0 -- humidity1[label="sunny"][fontsize=10];
C15 [label=C1];
outlook0 -- C15[label="overcast"][fontsize=10];
windy6 [label=windy][shape=box];
C27 [label=C2];
windy6 -- C27[label="true"][fontsize=10];
C18 [label=C1];
windy6 -- C18[label="false"][fontsize=10];
outlook0 -- windy6[label="rain"][fontsize=10];
}
Binary file added tests/1/out_dot_full_maj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions tests/1/out_dot_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
graph {
outlook0 [label=outlook][shape=box];
humidity1 [label=humidity][shape=box];
unknown2 [label=unknown];
humidity1 -- unknown2 [label="<70"][fontsize=10];
C13 [label=C1];
humidity1 -- C13 [label="<80"][fontsize=10];
C24 [label=C2];
humidity1 -- C24[label=">=80"][fontsize=10];
outlook0 -- humidity1[label="sunny"][fontsize=10];
C15 [label=C1];
outlook0 -- C15[label="overcast"][fontsize=10];
windy6 [label=windy][shape=box];
C27 [label=C2];
windy6 -- C27[label="true"][fontsize=10];
C18 [label=C1];
windy6 -- C18[label="false"][fontsize=10];
outlook0 -- windy6[label="rain"][fontsize=10];
}
Binary file added tests/1/out_dot_full_prb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions tests/1/out_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
2
C1 C2
4
outlook discret 3 sunny overcast rain
temperature numeric
humidity numeric
windy discret 2 true false
0 0 3 0 1 2
1 2 3 70 80 0
2 -1 0
3 0 0
4 1 0
5 0 0
6 3 2 0 1
7 1 0
8 0 0
16 changes: 16 additions & 0 deletions tests/1/out_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
2
C1 C2
4
outlook discret 3 sunny overcast rain
temperature numeric
humidity numeric
windy discret 2 true false
0 0 3 0 1 2
1 2 3 70 80 0
2 -1 0
3 0 0
4 1 0
5 0 0
6 3 2 0 1
7 1 0
8 0 0
Binary file added tests/1/out_scheme_div_maj
Binary file not shown.
Binary file added tests/1/out_scheme_div_prb
Binary file not shown.
Binary file added tests/1/out_scheme_full_maj
Binary file not shown.
Binary file added tests/1/out_scheme_full_prb
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/1/out_test_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C1
C2
2 changes: 2 additions & 0 deletions tests/1/out_test_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C1
C2
2 changes: 2 additions & 0 deletions tests/1/out_test_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C1
C2
2 changes: 2 additions & 0 deletions tests/1/out_test_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C1
C2
10 changes: 10 additions & 0 deletions tests/2/out_ascii_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Third < 6
==> Less
Third >= 6
Fourth < 18
Second < 5
==> unknown
Second >= 5
==> Medium
Fourth >= 18
==> Greater
10 changes: 10 additions & 0 deletions tests/2/out_ascii_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Third < 6
==> Less
Third >= 6
Fourth < 18
Second < 4
==> Less
Second >= 4
==> Medium
Fourth >= 18
==> Greater
11 changes: 11 additions & 0 deletions tests/2/out_ascii_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Third < 6
==> Less
Third < 10
Second < 4
==> Less
Second < 5
==> Medium
Second >= 5
==> Medium
Third >= 10
==> Greater
11 changes: 11 additions & 0 deletions tests/2/out_ascii_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Third < 6
==> Less
Third < 10
Second < 4
==> Less
Second < 8
==> Medium
Second >= 8
==> Medium
Third >= 10
==> Greater
14 changes: 14 additions & 0 deletions tests/2/out_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
3
Less Medium Greater
4
First numeric
Second numeric
Third numeric
Fourth numeric
0 2 2 6 0
1 0 0
2 3 2 18 0
3 1 2 5 0
4 -1 0
5 1 0
6 2 0
14 changes: 14 additions & 0 deletions tests/2/out_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
3
Less Medium Greater
4
First numeric
Second numeric
Third numeric
Fourth numeric
0 2 2 6 0
1 0 0
2 3 2 18 0
3 1 2 4 0
4 0 0
5 1 0
6 2 0
15 changes: 15 additions & 0 deletions tests/2/out_dot_div_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
graph {
Third0 [label=Third][shape=box];
Less1 [label=Less];
Third0 -- Less1 [label="<6"][fontsize=10];
Fourth2 [label=Fourth][shape=box];
Second3 [label=Second][shape=box];
unknown4 [label=unknown];
Second3 -- unknown4 [label="<5"][fontsize=10];
Medium5 [label=Medium];
Second3 -- Medium5[label=">=5"][fontsize=10];
Fourth2 -- Second3 [label="<18"][fontsize=10];
Greater6 [label=Greater];
Fourth2 -- Greater6[label=">=18"][fontsize=10];
Third0 -- Fourth2[label=">=6"][fontsize=10];
}
Binary file added tests/2/out_dot_div_maj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tests/2/out_dot_div_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
graph {
Third0 [label=Third][shape=box];
Less1 [label=Less];
Third0 -- Less1 [label="<6"][fontsize=10];
Fourth2 [label=Fourth][shape=box];
Second3 [label=Second][shape=box];
Less4 [label=Less];
Second3 -- Less4 [label="<4"][fontsize=10];
Medium5 [label=Medium];
Second3 -- Medium5[label=">=4"][fontsize=10];
Fourth2 -- Second3 [label="<18"][fontsize=10];
Greater6 [label=Greater];
Fourth2 -- Greater6[label=">=18"][fontsize=10];
Third0 -- Fourth2[label=">=6"][fontsize=10];
}
Binary file added tests/2/out_dot_div_prb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tests/2/out_dot_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
graph {
Third0 [label=Third][shape=box];
Less1 [label=Less];
Third0 -- Less1 [label="<6"][fontsize=10];
Second2 [label=Second][shape=box];
Less3 [label=Less];
Second2 -- Less3 [label="<4"][fontsize=10];
Medium4 [label=Medium];
Second2 -- Medium4 [label="<5"][fontsize=10];
Medium5 [label=Medium];
Second2 -- Medium5[label=">=5"][fontsize=10];
Third0 -- Second2 [label="<10"][fontsize=10];
Greater6 [label=Greater];
Third0 -- Greater6[label=">=10"][fontsize=10];
}
Binary file added tests/2/out_dot_full_maj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tests/2/out_dot_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
graph {
Third0 [label=Third][shape=box];
Less1 [label=Less];
Third0 -- Less1 [label="<6"][fontsize=10];
Second2 [label=Second][shape=box];
Less3 [label=Less];
Second2 -- Less3 [label="<4"][fontsize=10];
Medium4 [label=Medium];
Second2 -- Medium4 [label="<8"][fontsize=10];
Medium5 [label=Medium];
Second2 -- Medium5[label=">=8"][fontsize=10];
Third0 -- Second2 [label="<10"][fontsize=10];
Greater6 [label=Greater];
Third0 -- Greater6[label=">=10"][fontsize=10];
}
Binary file added tests/2/out_dot_full_prb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tests/2/out_full_maj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
3
Less Medium Greater
4
First numeric
Second numeric
Third numeric
Fourth numeric
0 2 3 6 10 0
1 0 0
2 1 3 4 5 0
3 0 0
4 1 0
5 1 0
6 2 0
14 changes: 14 additions & 0 deletions tests/2/out_full_prb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
3
Less Medium Greater
4
First numeric
Second numeric
Third numeric
Fourth numeric
0 2 3 6 10 0
1 0 0
2 1 3 4 8 0
3 0 0
4 1 0
5 1 0
6 2 0
Binary file added tests/2/out_scheme_div_maj
Binary file not shown.
Binary file added tests/2/out_scheme_div_prb
Binary file not shown.
Binary file added tests/2/out_scheme_full_maj
Binary file not shown.
Binary file added tests/2/out_scheme_full_prb
Binary file not shown.
Loading

0 comments on commit 40f177e

Please sign in to comment.