1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Fix containssorted

This commit is contained in:
mcrakhman 2024-07-31 23:11:35 +02:00
parent e5627ededa
commit 8d97077cf7
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
2 changed files with 2 additions and 1 deletions

View file

@ -113,6 +113,7 @@ func TestContainsSorted(t *testing.T) {
}{
{"both empty", []int{}, []int{}, true},
{"first empty", []int{}, []int{1}, false},
{"equal length but different", []int{2}, []int{1}, false},
{"second empty", []int{1, 2, 3}, []int{}, true},
{"both non-empty and first contains second", []int{1, 2, 3, 4, 5}, []int{2, 3, 4}, true},
{"both non-empty and first does not contain second", []int{1, 2, 3, 4, 5}, []int{3, 4, 6}, false},