diff --git a/tests/test_00_library_is_loadable.cpp b/tests/test_00_library_is_loadable.cpp deleted file mode 100644 index 8ce4269..0000000 --- a/tests/test_00_library_is_loadable.cpp +++ /dev/null @@ -1,9 +0,0 @@ -/* This file is part of mastodon-cpp. - */ - -#include "mastodon-cpp.hpp" - -int main(int argc, char *argv[]) -{ - Mastodon::API test("", ""); -} diff --git a/tests/test_01_get_instance.cpp b/tests/test_01_get_instance.cpp deleted file mode 100644 index 9d88fbb..0000000 --- a/tests/test_01_get_instance.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/* This file is part of mastodon-cpp. - */ - -#include -#include -#include "mastodon-cpp.hpp" - -int main(int argc, char *argv[]) -{ - Mastodon::API test("soc.ialis.me", ""); - std::string answer; - std::uint16_t ret = test.get(Mastodon::API::v1::instance, answer); - if (ret == 0) - { - if (answer.substr(7, 14) == "\"soc.ialis.me\"") - { - return 0; - } - } - - std::cout << ret << ": " << answer.substr(7, 14) << '\n'; - return 1; -} diff --git a/tests/test_02_easy_get_public_timeline.cpp b/tests/test_02_easy_get_public_timeline.cpp deleted file mode 100644 index 4f3aaae..0000000 --- a/tests/test_02_easy_get_public_timeline.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* This file is part of mastodon-cpp. - */ - -// Don't compile this if the Easy-interface is turned off -#ifndef WITHOUT_EASY - -#include -#include -#include "mastodon-cpp.hpp" -#include "easy/easy.hpp" -#include "easy/entities/status.hpp" - -int main(int argc, char *argv[]) -{ - Mastodon::Easy test("botsin.space", ""); - std::string answer; - std::uint16_t ret = test.get(Mastodon::API::v1::timelines_public, - { { "limit", { "1" } } }, answer); - if (ret == 0) - { - Mastodon::Easy::Status status(answer); - if (status.valid()) - { - return 0; - } - } - - std::cout << ret << ": " << answer << '\n'; - return 1; -} - -#else -#include -int main() -{ - printf("mastodon-cpp was compiled without Easy support.\n"); - return 0; -} -#endif // WITHOUT_EASY