// // test += operator. // // assumes constructors work. // // assumes lstring is implemented using a Seq as the first/only // member variable. // #include #include // has EXIT_SUCCESS #include "lstring.h" #include "testsub.h" // has functions for testing int main(void) { lstring empty1; lstring empty2; lstring x('x'); lstring wxyz("wxyz"); lstring abcdef("abcdef"); empty1 += wxyz; printWithMsg("'' += 'wxyz': ", empty1); wxyz += empty2; printWithMsg("'wxyz' += '': ", wxyz); wxyz += x; printWithMsg("previous result += 'x': ", wxyz); wxyz += abcdef; printWithMsg("previous result += 'abcdef': ", wxyz); cout << "That's all, folks!\n"; return EXIT_SUCCESS; }