mirror of
https://github.com/sailfishos/ofono
synced 2025-12-02 15:41:03 +08:00
Fix: Update unit test to the new return semantics
This commit is contained in:
@@ -43,15 +43,15 @@ static void test_alloc()
|
||||
g_assert(bit == 2);
|
||||
|
||||
bit = idmap_alloc(idmap);
|
||||
g_assert(bit == 0);
|
||||
g_assert(bit == 3);
|
||||
|
||||
idmap_put(idmap, 3);
|
||||
bit = idmap_alloc(idmap);
|
||||
g_assert(bit == 0);
|
||||
g_assert(bit == 3);
|
||||
|
||||
idmap_put(idmap, 0);
|
||||
bit = idmap_alloc(idmap);
|
||||
g_assert(bit == 0);
|
||||
g_assert(bit == 3);
|
||||
|
||||
idmap_put(idmap, 1);
|
||||
bit = idmap_alloc(idmap);
|
||||
|
||||
Reference in New Issue
Block a user