Fixed == operator for empty string comparison.
This commit is contained in:
1 parent
f6e5e60e5b
commit
beb3673241
8 files changed
+25
-14
No files matched your search
+2
-2
@@ -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.
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user