From 6cd2fd6cc15cc09cbd0f696931f0c53da234c410 Mon Sep 17 00:00:00 2001 From: brad Arant Date: Wed, 27 Nov 2024 15:18:32 -0800 Subject: [PATCH] updated zstring_test to accomodate asInteger. --- testing/zstring_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testing/zstring_test.cpp b/testing/zstring_test.cpp index c76b329..2684146 100644 --- a/testing/zstring_test.cpp +++ b/testing/zstring_test.cpp @@ -116,4 +116,11 @@ int main(int argc, char **argv) { std::cout << "quoted string: " << test22 << std::endl; std::cout << "quoted string: " << test22.getTokenExclude("\"") << std::endl; + coreutils::ZString test23("2"); + std::cout << "integer '2' is [" << test23 << "]" << std::endl; + coreutils::ZString test24("53524534"); + std::cout << "integer '53524534' is [" << test24 << "]" << std::endl; + coreutils::ZString test25("-543"); + std::cout << "integer '-543' is [" << test25 << "]" << std::endl; + }