File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ The goal of this project is to allow testing of c++ to remain easy and flexible,
13
13
14
14
using namespace std ;
15
15
16
- // Tell assert to call `before()` and `after()`;
17
16
#define USE_BEFORE 1
18
17
#define USE_AFTER 1
19
18
#include "helpers/assert.h"
@@ -40,22 +39,19 @@ namespace test {
40
39
for(int i = 0;i<5;i++){
41
40
try {
42
41
PWM pwm(pins[ i] , 0, 1);
43
- fail("didn't throw for pin ");
42
+ fail("didn't throw for");
44
43
} catch(...){
45
44
continue;
46
45
}
47
46
}
48
47
}
49
-
50
- void changing_duty_cycle_to_value_greater_than_100_returns_100(){
51
- pwm->setDutyCycle(75);
52
- assert(pwm->getDutyCycle() == 75);
53
- }
54
48
}
55
49
56
50
int main (){
51
+ SUITE ();
57
52
TEST (valid_pins_for_constructor_throw_no_error);
58
53
TEST (invalid_pins_for_constructor_throw_error);
59
- TEST (changing_duty_cycle_to_value_greater_than_100_returns_100);
54
+ TEST (changing_duty_cycle_so_value_greater_than_100_returns_100);
55
+ END ();
60
56
}
61
57
````
You can’t perform that action at this time.
0 commit comments