diff options
Diffstat (limited to 'tests/test-bluetooth-utils.c')
-rw-r--r-- | tests/test-bluetooth-utils.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-bluetooth-utils.c b/tests/test-bluetooth-utils.c new file mode 100644 index 00000000..dc786ca2 --- /dev/null +++ b/tests/test-bluetooth-utils.c @@ -0,0 +1,15 @@ +#include <bluetooth-utils.c> + +static void +test_appearance (void) +{ + g_assert_cmpint (bluetooth_appearance_to_type(0x03c2), ==, BLUETOOTH_TYPE_MOUSE); +} + +int main (int argc, char **argv) +{ + g_test_init (&argc, &argv, NULL); + g_test_add_func ("/bluetooth/appearance", test_appearance); + + return g_test_run (); +} |