school/cs235/lab04/main.cpp
2016-04-06 20:46:10 -07:00

15 lines
318 B
C++

#include <iostream>
#include <cassert>
#include "expman.h"
using namespace std;
int main() {
expman e;
assert(e.isBalanced("{ { [ ( ) ] } ( ) }") == true);
assert(e.isBalanced("{ [ ) }") == false);
assert(e.isBalanced("{ ( [ ] } )") == false);
assert(e.isBalanced("{") == false);
return 0;
}