Fixed == operator for empty string comparison.

This commit is contained in:
Brad Arant committed 2024-06-14 10:21:28 -07:00
1 parent f6e5e60e5b
commit beb3673241
8 files changed
+25 -14

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
g++ -o zstring_test zstring_test.cpp -I.. -L.. -lCoreUtils
g++ -o mstring_test mstring_test.cpp -I.. -L.. -lCoreUtils
g++ -g -o zstring_test zstring_test.cpp -I.. -L.. -lCoreUtils
g++ -g -o mstring_test mstring_test.cpp -I.. -L.. -lCoreUtils
#g++ -o jstring_test jstring_test.cpp -I.. -L.. -lCoreUtils
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -6,8 +6,9 @@ int main(int argc, char **argv) {
// Test comparison operations.
coreutils::ZString test1("");
coreutils::ZString test1("else");
std::cout << (test1 != ".") << std::endl;
std::cout << (test1 == "") << std::endl;
// Test constructors.