MCPcopy Create free account
hub / github.com/HowardHinnant/date / test_n

Function test_n

test/date_test/parse.pass.cpp:915–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913}
914
915void
916test_n()
917{
918 using namespace std;
919 using namespace date;
920 {
921 istringstream in{"05/04/17"};
922 year_month_day d1;
923 in >> parse("%n%D", d1);
924 assert(in.fail());
925 }
926 {
927 istringstream in{" 05/04/17"};
928 year_month_day d1;
929 in >> parse("%n%D", d1);
930 assert(d1 == may/4/2017);
931 }
932 {
933 istringstream in{" 05/04/17"};
934 year_month_day d1;
935 in >> parse("%n%D", d1);
936 assert(in.fail());
937 }
938}
939
940void
941test_t()

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected