// // test empty() member function. // // assumes constructors work. // #include #include // has EXIT_SUCCESS #include "lstring.h" #include "testsub.h" // has functions for testing int main(void) { lstring empty; lstring x('x'); lstring wxyz("wxyz"); if (empty.empty()) cout << "'' is empty\n"; if (x.empty()) cout << "'x' is empty\n"; if (wxyz.empty()) cout << "'wxyz' is empty\n"; cout << "That's all, folks!\n"; return EXIT_SUCCESS; }