mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix cmdline_test.v
This commit is contained in:
@ -513,9 +513,6 @@ pub fn (a []i64) eq(a2 []i64) bool {
|
||||
return array_eq(a, a2)
|
||||
}
|
||||
|
||||
pub fn (a []string) eq(a2 []string) bool {
|
||||
return array_eq(a, a2)
|
||||
}
|
||||
|
||||
pub fn (a []byte) eq(a2 []byte) bool {
|
||||
return array_eq(a, a2)
|
||||
@ -526,6 +523,19 @@ pub fn (a []f32) eq(a2 []f32) bool {
|
||||
}
|
||||
*/
|
||||
|
||||
pub fn (a1 []string) eq(a2 []string) bool {
|
||||
//return array_eq(a, a2)
|
||||
if a1.len != a2.len {
|
||||
return false
|
||||
}
|
||||
for i := 0; i < a1.len; i++ {
|
||||
if a1[i] != a2[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// compare_i64 for []f64 sort_with_compare()
|
||||
// sort []i64 with quicksort
|
||||
// usage :
|
||||
|
Reference in New Issue
Block a user