diff --git a/test/test_mifare_classic.c b/test/test_mifare_classic.c index e9380b7..c1ef9c2 100644 --- a/test/test_mifare_classic.c +++ b/test/test_mifare_classic.c @@ -339,3 +339,11 @@ test_mifare_classic_get_uid (void) free (uid); } +void +test_mifare_classic_get_tag_friendly_name (void) +{ + const char *name = freefare_get_tag_friendly_name (tag); + + cut_assert_not_null (name, cut_message ("freefare_get_tag_friendly_name() failed")); +} + diff --git a/test/test_mifare_ultralight.c b/test/test_mifare_ultralight.c index 3e5b3e9..e51b4fd 100644 --- a/test/test_mifare_ultralight.c +++ b/test/test_mifare_ultralight.c @@ -153,3 +153,13 @@ test_mifare_ultralight_get_uid (void) free (uid); } + +void +test_mifare_ultralight_tag_friendly_name (void) +{ + const char *name = freefare_get_tag_friendly_name (tag); + + cut_assert_not_null (name, cut_message ("freefare_get_tag_friendly_name() failed")); +} + +