testing constructors constructed '' = '' constructed 'x' = 'x' constructed 'wxyz' = 'wxyz' That's all, folks! testing empty() '' is empty That's all, folks! testing length() length of '' = 0 length of 'x' = 1 length of 'wxyz' = 4 length of '' again = 0 That's all, folks! testing getElementAt() characters of 'wxyz' = w x y z first character again is w That's all, folks! testing replaceElementAt() original string: 'wxyz' after replacing character 1 with b: 'wbyz' after replacing character 2 with c: 'wbcz' after replacing character 0 with a: 'abcz' after replacing character 3 with d: 'abcd' That's all, folks! testing << operator '' = '' 'x' = 'x' 'wxyz' = 'wxyz' Written to file: '' = '' 'x' = 'x' 'wxyz' = 'wxyz' That's all, folks! testing + operator '' + 'wxyz' = 'wxyz' 'wxyz' + '' = 'wxyz' 'wxyz' + 'x' = 'wxyzx' 'abcdef' + 'wxyz' = 'abcdefwxyz' That's all, folks! testing += operator '' += 'wxyz': 'wxyz' 'wxyz' += '': 'wxyz' previous result += 'x': 'wxyzx' previous result += 'abcdef': 'wxyzxabcdef' That's all, folks! testing relational operators comparing '' and '': == <= >= comparing '' and 'x': != < <= comparing 'x' and 'x': == <= >= comparing 'x' and 'y': != < <= comparing 'abcd' and 'abcd': == <= >= comparing 'x' and 'xy': != < <= comparing 'xy' and 'x': != > >= comparing 'xy' and 'yz': != < <= comparing 'abcd' and 'abcef': != < <= That's all, folks! testing append() append 'wxyz' to '': 'wxyz' append '' to 'wxyz': 'wxyz' append 'x' to previous result: 'wxyzx' append 'abcdef' to previous result: 'wxyzxabcdef' That's all, folks! testing find() '' found in 'abcdef' 'b' found in 'abcdef' 'ab' found in 'abcdef' 'bc' found in 'abcdef' 'ef' found in 'abcdef' That's all, folks! testing insertBefore() insert 'wxyz' into '' at 0: 'wxyz' insert '' into 'wxyz' at 1: 'wxyz' insert 'ab' into result at 0: 'abwxyz' insert 'efgh' into result at 2: 'abefghwxyz' insert 'cd' into result at 10: 'abefghwxyzcd' That's all, folks!