Rework tag allocation.
Split Mifare Classic 1 and 4K tag allocation. Rely on new tasting functions.
This commit is contained in:
parent
0279361873
commit
ee628f7ec5
11 changed files with 162 additions and 109 deletions
26
test/test_freefare.c
Normal file
26
test/test_freefare.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <cutter.h>
|
||||
|
||||
#include <freefare.h>
|
||||
#include "freefare_internal.h"
|
||||
|
||||
void
|
||||
test_is_mifare_ultralight (void)
|
||||
{
|
||||
FreefareTag tag;
|
||||
nfc_target target;
|
||||
|
||||
tag = mifare_ultralight_tag_new (NULL, target);
|
||||
cut_assert_true (is_mifare_ultralight (tag));
|
||||
mifare_ultralight_tag_free (tag);
|
||||
}
|
||||
|
||||
void
|
||||
test_is_mifare_ultralightc (void)
|
||||
{
|
||||
FreefareTag tag;
|
||||
nfc_target target;
|
||||
|
||||
tag = mifare_ultralightc_tag_new (NULL, target);
|
||||
cut_assert_true (is_mifare_ultralightc (tag));
|
||||
mifare_ultralightc_tag_free (tag);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue