Skip to content

Commit 0d6f710

Browse files
committed
SVCB: add test for generic format key with leading zeroes
1 parent 16b85bd commit 0d6f710

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pdns/test-svc_records_cc.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ BOOST_AUTO_TEST_CASE(test_SvcParam_keyFromString) {
5353
k = SvcParam::keyFromString("key666");
5454
BOOST_CHECK(k == 666);
5555

56+
k = SvcParam::keyFromString("key00666");
57+
BOOST_CHECK(k == 666);
58+
5659
BOOST_CHECK_THROW(SvcParam::keyFromString("MANDATORY"), std::invalid_argument);
5760
}
5861

0 commit comments

Comments
 (0)