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
@@ -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