// // 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 empty; lstring x('x'); lstring wxyz("wxyz"); lstring abcdef("abcdef"); printWithMsg("'' + 'wxyz' = ", empty + wxyz); printWithMsg("'wxyz' + '' = ", wxyz + empty); printWithMsg("'wxyz' + 'x' = ", wxyz + x); printWithMsg("'abcdef' + 'wxyz' = ", abcdef + wxyz); cout << "That's all, folks!\n"; return EXIT_SUCCESS; }