Many fixes for MString, ZString.

This commit is contained in:
Brad Arant committed 2022-08-23 09:30:56 -07:00
1 parent d0d5172afa
commit 2a349c6ceb
9 files changed
+65 -34

No files matched your search

Binary file not shown.
+2 -1
View File
@@ -17,8 +17,9 @@ int main(int argc, char **argv) {
test3 = 'a';
std::cout << "char operator=: [" << test3 << "]." << std::endl;
coreutils::ZString test7("zstring data");
coreutils::MString test4;
test4 << "this is a test.";
test4 << "this is a test." << test7;
std::cout << "char* operator<<: [" << test4 << "]." << std::endl;
test4 << "another test " << 75;
std::cout << "char* operator<<: [" << test4 << "]." << std::endl;
Binary file not shown.
+6 -1
View File
@@ -6,7 +6,12 @@ int main(int argc, char **argv) {
// Test comparison operations.
coreutils::ZString test1("");
std::cout << (test1 != ".");
std::cout << (test1 != ".") << std::endl;
// Test constructors.
coreutils::ZString test3("1659979856.747021214|barant@barant");
std::cout << test3 << std::endl;
// Test split operations.