Added testing function for ZString.
This commit is contained in:
1 parent
191899fbb7
commit
a0129273b3
8 files changed
+99
-70
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
#include "../ZString.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
coreutils::ZString test("character1111:22222:33333");
|
||||
test.length = 9;
|
||||
|
||||
test.split(":");
|
||||
|
||||
std::cout << test << std::endl;
|
||||
std::cout << test.getLength() << std::endl;
|
||||
|
||||
std::cout << test[0] << std::endl;
|
||||
std::cout << test[1] << std::endl;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user