update tests (#15449)

This commit is contained in:
Alex Pozhylenkov 2021-01-29 01:00:25 +02:00 committed by GitHub
parent 5546681389
commit 8360db3208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,7 @@ TEST_CASE ("SourceParagraph construct invalid", "[paragraph]")
}});
REQUIRE(!m_pgh.has_value());
REQUIRE(m_pgh.error()->has_error());
m_pgh = test_parse_control_file({{
{"Source", "zlib"},
@ -68,6 +69,7 @@ TEST_CASE ("SourceParagraph construct invalid", "[paragraph]")
}});
REQUIRE(!m_pgh.has_value());
REQUIRE(m_pgh.error()->has_error());
m_pgh = test_parse_control_file({
{
@ -81,6 +83,16 @@ TEST_CASE ("SourceParagraph construct invalid", "[paragraph]")
});
REQUIRE(!m_pgh.has_value());
REQUIRE(m_pgh.error()->has_error());
// invalid field`s name
m_pgh = test_parse_control_file({{
{"Surce", "zlib"},
{"Vursion", "1.2.8"},
}});
REQUIRE(!m_pgh.has_value());
REQUIRE(m_pgh.error()->has_error());
}
TEST_CASE ("SourceParagraph construct maximum", "[paragraph]")