Skip to content

Commit

Permalink
update time_duration_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymber committed Jul 4, 2019
1 parent 8cca5e0 commit 70dba92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/time_duration_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#include "catch/catch.hpp"
#include "calendar.h"
#include "json.h"
#include "units.h"

static time_duration parse_time_duration( const std::string &json )
{
std::istringstream buffer( json );
JsonIn jsin( buffer );
return time_duration::read_from_json_string( jsin );
return read_from_json_string<time_duration>( jsin, time_duration::units );
}

TEST_CASE( "time_duration parsing from JSON" )
Expand Down

0 comments on commit 70dba92

Please sign in to comment.