@@ -9,90 +9,105 @@ fn addition() {
9
9
}
10
10
11
11
#[ test]
12
+ #[ ignore]
12
13
fn more_addition ( ) {
13
14
let command = "What is 53 plus 2?" ;
14
15
assert_eq ! ( 55 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
15
16
}
16
17
17
18
#[ test]
19
+ #[ ignore]
18
20
fn addition_with_negative_numbers ( ) {
19
21
let command = "What is -1 plus -10?" ;
20
22
assert_eq ! ( -11 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
21
23
}
22
24
23
25
#[ test]
26
+ #[ ignore]
24
27
fn large_addition ( ) {
25
28
let command = "What is 123 plus 45678?" ;
26
29
assert_eq ! ( 45801 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
27
30
}
28
31
29
32
#[ test]
33
+ #[ ignore]
30
34
fn subtraction ( ) {
31
35
let command = "What is 4 minus -12?" ;
32
36
assert_eq ! ( 16 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
33
37
}
34
38
35
39
#[ test]
40
+ #[ ignore]
36
41
fn multiplication ( ) {
37
42
let command = "What is -3 multiplied by 25?" ;
38
43
assert_eq ! ( -75 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
39
44
}
40
45
41
46
#[ test]
47
+ #[ ignore]
42
48
fn division ( ) {
43
49
let command = "What is 33 divided by -3?" ;
44
50
assert_eq ! ( -11 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
45
51
}
46
52
47
53
#[ test]
54
+ #[ ignore]
48
55
fn multiple_additions ( ) {
49
56
let command = "What is 1 plus 1 plus 1?" ;
50
57
assert_eq ! ( 3 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
51
58
}
52
59
53
60
#[ test]
61
+ #[ ignore]
54
62
fn addition_and_subtraction ( ) {
55
63
let command = "What is 1 plus 5 minus -2?" ;
56
64
assert_eq ! ( 8 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
57
65
}
58
66
59
67
#[ test]
68
+ #[ ignore]
60
69
fn multiple_subtraction ( ) {
61
70
let command = "What is 20 minus 4 minus 13?" ;
62
71
assert_eq ! ( 3 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
63
72
}
64
73
65
74
#[ test]
75
+ #[ ignore]
66
76
fn subtraction_then_addition ( ) {
67
77
let command = "What is 17 minus 6 plus 3?" ;
68
78
assert_eq ! ( 14 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
69
79
}
70
80
71
81
#[ test]
82
+ #[ ignore]
72
83
fn multiple_multiplications ( ) {
73
84
let command = "What is 2 multiplied by -2 multiplied by 3?" ;
74
85
assert_eq ! ( -12 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
75
86
}
76
87
77
88
#[ test]
89
+ #[ ignore]
78
90
fn addition_and_multiplication ( ) {
79
91
let command = "What is -3 plus 7 multiplied by -2?" ;
80
92
assert_eq ! ( -8 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
81
93
}
82
94
83
95
#[ test]
96
+ #[ ignore]
84
97
fn multiple_divisions ( ) {
85
98
let command = "What is -12 divided by 2 divided by -3?" ;
86
99
assert_eq ! ( 2 , WordProblem :: new( command) . answer( ) . unwrap( ) ) ;
87
100
}
88
101
89
102
#[ test]
103
+ #[ ignore]
90
104
fn unknown_operation ( ) {
91
105
let command = "What is 52 cubed?" ;
92
106
assert ! ( WordProblem :: new( command) . answer( ) . is_err( ) ) ;
93
107
}
94
108
95
109
#[ test]
110
+ #[ ignore]
96
111
fn non_math_question ( ) {
97
112
let command = "Who is the President of the United States?" ;
98
113
assert ! ( WordProblem :: new( command) . answer( ) . is_err( ) ) ;
0 commit comments