summaryrefslogtreecommitdiffstats
path: root/test/catch_rss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/catch_rss.cpp')
-rw-r--r--test/catch_rss.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/catch_rss.cpp b/test/catch_rss.cpp
index e2bb7dc..a1c629f 100644
--- a/test/catch_rss.cpp
+++ b/test/catch_rss.cpp
@@ -7,8 +7,8 @@
#include <string>
#include <vector>
-#include "rss.hpp"
-#include "request.hpp"
+#include "rttt/rss.hpp"
+#include "rttt/request.hpp"
using namespace rttt;
@@ -74,7 +74,7 @@ SCENARIO("We can parse subscriptions.xml correctly") {
}
SCENARIO("We can parse time string") {
- auto time_tm = rttt::rss::parse_time("2022-01-07T12:39:42-08:00");
+ auto time_tm = rttt::parse_time("2022-01-07T12:39:42-08:00");
REQUIRE(time_tm.tm_year == 2022 - 1900);
REQUIRE(time_tm.tm_mon == 0);
REQUIRE(time_tm.tm_mday == 7);
@@ -82,7 +82,7 @@ SCENARIO("We can parse time string") {
REQUIRE(time_tm.tm_min == 39);
REQUIRE(time_tm.tm_sec == 0);
- time_tm = rttt::rss::parse_time("2021-12-12T09:00:00+01:00");
+ time_tm = rttt::parse_time("2021-12-12T09:00:00+01:00");
REQUIRE(time_tm.tm_year == 2021 - 1900);
REQUIRE(time_tm.tm_mon == 11);
REQUIRE(time_tm.tm_mday == 12);
@@ -123,7 +123,7 @@ SCENARIO("We can parse atom correctly") {
story.url = entry.child("link").text().get();
story.by = by;
story.domain = blog;
- auto time_tm = rttt::rss::parse_time(entry.child("published").text().get());
+ auto time_tm = rttt::parse_time(entry.child("published").text().get());
story.time = std::mktime(&time_tm);
stories.push_back(story);
/*std::cout << entry.name() << std::endl;