<commit_before>#define BOOST_TEST_MODULE weatherTest
#include <boost/test/included/unit_test.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/gregorian/greg_weekday.hpp>
#include <iostream>
#include "wunderground.hpp"

BOOST_AUTO_TEST_SUITE ( test_wrapper )

std::string APIkey = "put your api key here";

BOOST_AUTO_TEST_CASE( test_conditions_day )
{
//check is it day from current conditions same as today
wunderground::Conditions curren(APIkey);
curren.loadData("zagreb","croatia");
boost::gregorian::date d = boost::gregorian::day_clock::universal_day();
boost::gregorian::greg_weekday wd(d.day_of_week());
std::string now = wd.as_short_string();
std::string time = curren.getCondition("local time");<commit_msg>Update unit_test.cpp<commit_after>#define BOOST_TEST_MODULE weatherTest
#include <boost/test/included/unit_test.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/gregorian/greg_weekday.hpp>
#include <iostream>
#include "wunderground.hpp"

BOOST_AUTO_TEST_SUITE ( test_wrapper )

std::string APIkey = "put your api key here";


BOOST_AUTO_TEST_CASE( test_conditions_day )
{
//check is it day from current conditions same as today
wunderground::Conditions curren(APIkey);
curren.loadData("zagreb","croatia");
boost::gregorian::date d = boost::gregorian::day_clock::universal_day();
boost::gregorian::greg_weekday wd(d.day_of_week());
std::string now = wd.as_short_string();
std::string time = curren.getCondition("local time");
{'fraction_non_alphanumeric': 0.13213811420982735, 'fraction_numerical': 0.0, 'mean_word_length': 8.41875, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3261888', 'n_tokens_mistral': 527, 'n_tokens_neox': 505, 'n_words': 98}