summaryrefslogtreecommitdiff
path: root/tests/romantest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/romantest.cpp')
-rw-r--r--tests/romantest.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/romantest.cpp b/tests/romantest.cpp
index ce5359a..3af0ae1 100644
--- a/tests/romantest.cpp
+++ b/tests/romantest.cpp
@@ -1,10 +1,12 @@
-#include <iostream.h>
+#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-extern "C" {
#include <roman.h>
-}
+
+#ifndef NO_SWORD_NAMESPACE
+using sword::from_rom;
+#endif
int main(int argc, char **argv) {
if (argc != 2) {
@@ -15,10 +17,10 @@ int main(int argc, char **argv) {
char buf[127];
if (isdigit(argv[1][0])) {
to_rom(atoi(argv[1]), buf);
- cout << buf << "\n";
+ std::cout << buf << std::endl;
}
*/
- else cout << from_rom(argv[1]) << "\n";
+ else std::cout << from_rom(argv[1]) << std::endl;
return 0;
}