From 3a2c38a8cb8c484bbd3d36e4e87c2e491fb39558 Mon Sep 17 00:00:00 2001 From: latenightz Date: Mon, 26 Apr 2021 19:24:09 +0000 Subject: [PATCH] Add 'test/testing.cpp' --- test/testing.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/testing.cpp diff --git a/test/testing.cpp b/test/testing.cpp new file mode 100644 index 0000000..34c35ec --- /dev/null +++ b/test/testing.cpp @@ -0,0 +1,19 @@ +// Testing file for EZLib functions +#include +#include "lib/ez.h" + +using namespace std; + +int main() { + cout << "Hello world from the testing app!\n[next you should see EZLib functions]\n"; + ezl_hello(1); // Displays hello message from EZLib + ezl_ver(1); // Displays version of EZLib + cout << "\n"; // Due to the current feature ezl_ver() not being availible, + // You have to manually add \n... sorry! + cout << "System time: "; // not part of EZLib + ezl_time(1); // Displays system time using EZLib + // Note: if 1 is added in the parenthesis, it will print a newline \n at the end. + // Using 0 or any integer but 1 will result in no newline. + ezl_wf("testing.txt", "hello, this was written with ezlib's file writer.\n"); // write to "testing.txt" + ezl_rf("testing.txt"); // Reads the file "testing.txt" +}