summaryrefslogtreecommitdiffhomepage
path: root/tests/test-webserver.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-06-06 15:21:43 +0200
committerRoland Reichwein <mail@reichwein.it>2020-06-06 15:21:43 +0200
commit3d909981106454a9fe5ed4b27fd94f0135ef0871 (patch)
tree1c4a488cfb26248793d21c96d73d2adc2cbf4af3 /tests/test-webserver.cpp
parent357cf76409d30341a2c4eedcf2568f0abd56e88d (diff)
test stoul()
Diffstat (limited to 'tests/test-webserver.cpp')
-rw-r--r--tests/test-webserver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-webserver.cpp b/tests/test-webserver.cpp
index f7020af..5838dfa 100644
--- a/tests/test-webserver.cpp
+++ b/tests/test-webserver.cpp
@@ -36,6 +36,13 @@ TEST(property_tree, put)
EXPECT_EQ(ss.str(), "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<list><listentry type=\"file1\">name1.txt</listentry><listentry type=\"file2\">name2.txt</listentry></list>");
}
+TEST(string, stoul)
+{
+ unsigned long l = std::stoul("-1");
+
+ EXPECT_EQ(l, std::numeric_limits<unsigned long>::max());
+}
+
int main(int argc, char* argv[]) {
::testing::InitGoogleMock(&argc, argv);