//test simplified Counter class #include #include #include "Counter.h" using namespace std; int main() { Counter t; assert(t.getValue()==0); t.countup(); assert(t.getValue()==1); t.countdn(); assert(t.getValue()==0); Counter t2(4); assert(t2.getValue()==4); t2.countup(); assert(t2.getValue()==5); t2.countdn(); assert(t2.getValue()==4); return 0; //test had 0 errors }