Sha256: feb184f2085301fced06a36989a5e332078653ab855b6f72b3f33a68b5e4f58b

Contents?: true

Size: 589 Bytes

Versions: 73

Compression:

Stored size: 589 Bytes

Contents

#include "leap.h"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE(a_known_leap_year)
{
    BOOST_REQUIRE(leap::is_leap_year(1996));
}

#if defined(EXERCISM_RUN_ALL_TESTS)
BOOST_AUTO_TEST_CASE(any_old_year)
{
    BOOST_REQUIRE(!leap::is_leap_year(1997));
}

BOOST_AUTO_TEST_CASE(turn_of_the_20th_century)
{
    BOOST_REQUIRE(!leap::is_leap_year(1900));
}

BOOST_AUTO_TEST_CASE(turn_of_the_21st_century)
{
    BOOST_REQUIRE(leap::is_leap_year(2000));
}

BOOST_AUTO_TEST_CASE(turn_of_the_25th_century)
{
    BOOST_REQUIRE(leap::is_leap_year(2400));
}
#endif

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.179 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.178 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.177 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.176 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.175 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.174 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.173 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.172 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.171 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.170 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.169 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.167 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.166 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.165 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.164 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.163 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.162 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.161 tracks/cpp/exercises/leap/leap_test.cpp
trackler-2.2.1.160 tracks/cpp/exercises/leap/leap_test.cpp