2016-01-18 16:55:47 +01:00
|
|
|
#include <cutter.h>
|
|
|
|
|
|
|
|
#include <freefare.h>
|
|
|
|
#include "freefare_internal.h"
|
|
|
|
|
|
|
|
void
|
2017-06-27 13:58:31 +02:00
|
|
|
test_is_mifare_ultralight(void)
|
2016-01-18 16:55:47 +01:00
|
|
|
{
|
|
|
|
FreefareTag tag;
|
|
|
|
nfc_target target;
|
|
|
|
|
2017-06-27 13:58:31 +02:00
|
|
|
tag = mifare_ultralight_tag_new(NULL, target);
|
|
|
|
cut_assert_true(is_mifare_ultralight(tag));
|
|
|
|
mifare_ultralight_tag_free(tag);
|
2016-01-18 16:55:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-06-27 13:58:31 +02:00
|
|
|
test_is_mifare_ultralightc(void)
|
2016-01-18 16:55:47 +01:00
|
|
|
{
|
|
|
|
FreefareTag tag;
|
|
|
|
nfc_target target;
|
|
|
|
|
2017-06-27 13:58:31 +02:00
|
|
|
tag = mifare_ultralightc_tag_new(NULL, target);
|
|
|
|
cut_assert_true(is_mifare_ultralightc(tag));
|
|
|
|
mifare_ultralightc_tag_free(tag);
|
2016-01-18 16:55:47 +01:00
|
|
|
}
|