From df5c6ccb95156281d83eac4c4524c1e9f98a94e3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 19 Aug 2006 22:23:45 +0000 Subject: [PATCH] added format test --- plugins/testsuite/fmttest.sma | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 plugins/testsuite/fmttest.sma diff --git a/plugins/testsuite/fmttest.sma b/plugins/testsuite/fmttest.sma new file mode 100644 index 00000000..e3e65944 --- /dev/null +++ b/plugins/testsuite/fmttest.sma @@ -0,0 +1,18 @@ +#include + +public plugin_init() +{ + register_plugin("Format Test", "1.0", "BAILOPAN") + + register_srvcmd("test_format", "Command_TestFormat") +} + +public Command_TestFormat() +{ + server_print("Printing -1 with d: %d", -1) + server_print("Printing -1 with u: %u", -1) + server_print("Printing (1<<31) with d: %d", (1<<31)) + server_print("Printing (1<<31) with u: %u", (1<<31)) + server_print("Printing 1 with d: %d", 1) + server_print("Printing 1 with u: %u", 1) +}