-rw-r--r-- | test/test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc index 2143ac0..770e0c6 100644 --- a/test/test.cc +++ b/test/test.cc | |||
@@ -1,18 +1,19 @@ | |||
1 | #include <iostream> | 1 | #include <iostream> |
2 | #include <stdexcept> | 2 | #include <stdexcept> |
3 | #include <unistd.h> | ||
3 | using namespace std; | 4 | using namespace std; |
4 | #include <opkele/exception.h> | 5 | #include <opkele/exception.h> |
5 | #include <opkele/util.h> | 6 | #include <opkele/util.h> |
6 | 7 | ||
7 | #include "config.h" | 8 | #include "config.h" |
8 | 9 | ||
9 | class failed_test : public opkele::exception { | 10 | class failed_test : public opkele::exception { |
10 | public: | 11 | public: |
11 | failed_test(OPKELE_E_PARS) | 12 | failed_test(OPKELE_E_PARS) |
12 | : exception(OPKELE_E_CONS) { } | 13 | : exception(OPKELE_E_CONS) { } |
13 | }; | 14 | }; |
14 | 15 | ||
15 | void test_rfc_3986_normalize_uri(const string &ouri,bool success,const string& nuri="") { | 16 | void test_rfc_3986_normalize_uri(const string &ouri,bool success,const string& nuri="") { |
16 | try { | 17 | try { |
17 | string n = opkele::util::rfc_3986_normalize_uri(ouri); | 18 | string n = opkele::util::rfc_3986_normalize_uri(ouri); |
18 | if(!success) | 19 | if(!success) |