diff options
Diffstat (limited to 'tests/cgitest.nim')
-rwxr-xr-x | tests/cgitest.nim | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/cgitest.nim b/tests/cgitest.nim deleted file mode 100755 index ef115c80b..000000000 --- a/tests/cgitest.nim +++ /dev/null @@ -1,15 +0,0 @@ -# Test the new CGI module -import strtabs, cgi - - -#setTestData("name", "the andreas", "password", "rumpf\t\ttab") - -var myData = readData() -validateData(myData, "name", "password") -writeContentType() - -write(stdout, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n") -write(stdout, "<html><head><title>Test</title></head><body>\n") -writeln(stdout, "name: " & myData["name"]) -writeln(stdout, "password: " & myData["password"]) -writeln(stdout, "</body></html>") |