#ifndef SEEN_URI_TEST_H
#define SEEN_URI_TEST_H
/*
* Test uri.h
*
* Written to aid with refactoring the uri handling to support fullPath
* and data URIs and also cover code which wasn't before tested.
*
* Copyright 2014 (c) BasisTech Boston
*
*/
#include <cxxtest/TestSuite.h>
#include "uri.h"
{
{
}
}
}
}
}
void testToString()
{
{ "foo", "foo" },
{ "#foo", "#foo" },
//{ "data:data", "data:data" },
};
}
}
void testPath()
{
{ "#bar", NULL },
{ "data:data", NULL },
};
}
}
void testFullPath() {
stringTest( URI("cxxtest-uri.svg").getFullPath("/usr/../tmp"), std::string("/tmp/cxxtest-uri.svg") );
}
};
#endif // SEEN_URI_TEST_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :