MCPcopy Create free account
hub / github.com/dfinity/orbit / compare_arrays

Function compare_arrays

tests/integration/src/install_tests.rs:919–923  ·  view source on GitHub ↗
(a: &[T], b: &[T])

Source from the content-addressed store, hash-verified

917}
918
919fn compare_arrays<T: PartialEq>(a: &[T], b: &[T]) -> bool {
920 a.len() == b.len()
921 && a.iter().all(|item| b.contains(item))
922 && b.iter().all(|item| a.contains(item))
923}
924
925fn assert_initial_accounts(
926 env: &PocketIc,

Callers 1

assert_initial_accountsFunction · 0.85

Calls 4

allMethod · 0.80
iterMethod · 0.80
containsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected