mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
test: add GetAccountVirtualFilesByPath test
This commit is contained in:
13
pkg/utils/slice.go
Normal file
13
pkg/utils/slice.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package utils
|
||||
|
||||
func SliceEqual[T comparable](a, b []T) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
}
|
||||
for i, v := range a {
|
||||
if v != b[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user