24 #include "gtest/gtest.h"
34 TEST(TestCredentialValidator, alias_length)
38 ASSERT_NO_THROW({ c.
alias(
"long_enough"); });
40 ASSERT_NO_THROW({ c.
alias(
"a"); });
43 { c.
alias(
"this_is_so_long_this_alias_is_clearly_to_long_to_be_valid"); },
47 for (
int i = 0; i < 51; ++i)
49 ASSERT_NO_THROW(c.
alias(alias));
55 TEST(TestWiegandCardValidator, card_id)
64 ASSERT_NO_THROW({ c.
card_id(
"11:22:33:44"); });
65 ASSERT_NO_THROW({ c.
card_id(
"aa:bb:cc"); });
68 TEST(TestWiegandCardValidator, nb_bits)
77 ASSERT_NO_THROW(c.
nb_bits(500));
80 TEST(TestWiegandPinValidator, pin_is_numeric)
90 ASSERT_NO_THROW(c.
pin_code(
"12345678"));