Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b39d418

Browse files
committed
Update README.md
1 parent d4d6ad5 commit b39d418

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The goal of this project is to allow testing of c++ to remain easy and flexible,
1313

1414
using namespace std;
1515

16-
//Tell assert to call `before()` and `after()`;
1716
#define USE_BEFORE 1
1817
#define USE_AFTER 1
1918
#include "helpers/assert.h"
@@ -40,22 +39,19 @@ namespace test {
4039
for(int i = 0;i<5;i++){
4140
try {
4241
PWM pwm(pins[i], 0, 1);
43-
fail("didn't throw for pin");
42+
fail("didn't throw for");
4443
} catch(...){
4544
continue;
4645
}
4746
}
4847
}
49-
50-
void changing_duty_cycle_to_value_greater_than_100_returns_100(){
51-
pwm->setDutyCycle(75);
52-
assert(pwm->getDutyCycle() == 75);
53-
}
5448
}
5549

5650
int main(){
51+
SUITE();
5752
TEST(valid_pins_for_constructor_throw_no_error);
5853
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();
6056
}
6157
````

0 commit comments

Comments
 (0)