常规更新

This commit is contained in:
2026-06-26 17:56:28 +08:00
parent c66cb28604
commit e9c68c5e8e
5 changed files with 684 additions and 96 deletions
+7 -1
View File
@@ -27,7 +27,13 @@ TEST_F(BdsTest, TestBdsInfer) {
// std::cout << infer("A0001838201584F23468207CDFA5").value();
}
TEST_F(BdsTest, Infer2LargeBds17ReservedBitsDoesNotThrow) {
std::string msg = "10100000000000000000000000000000";
msg += "00010000000000110000101010000000111101010000000000000000";
msg += "000000000000000000000000";
EXPECT_NO_THROW(infer2(msg, true));
EXPECT_NO_THROW(infer2("1010000000000000000011110011100100010000000000110000101010000000111101010000000000000000001110000101001101010111", true));
}
TEST_F(BdsTest, TestBdsIs50Or60) {
auto result = is50or60(hex2bin("A0001838201584F23468207CDFA5"), 0, 0, 0);
EXPECT_EQ(result, ""); // Check if the optional is empty