xmpp: RECEIVE MESSAGES!

This commit is contained in:
2022-01-01 21:24:27 +01:00
parent f22d042255
commit 1acc2630b4
17 changed files with 250 additions and 113 deletions

View File

@@ -18,12 +18,12 @@ void main() {
});
});
group("listContains", () {
group("firstWhereOrNull", () {
test("[] should not contain 1", () {
expect(listContains<int>([], (int element) => element == 1), false);
expect(firstWhereOrNull<int>([], (int element) => element == 1), null);
});
test("[1, 2, 3] should contain 2", () {
expect(listContains([ 1, 2, 3 ], (int element) => element == 2), true);
expect(firstWhereOrNull([ 1, 2, 3 ], (int element) => element == 2), 2);
});
});