Lines Matching refs:high_neighbor

295 fn high_neighbor(v :&[u32], x :usize) -> (usize, u32) {  in high_neighbor()  function
315 assert_eq!(high_neighbor(&v, 2), (1, 4)); in test_high_neighbor()
316 assert_eq!(high_neighbor(&v, 3), (1, 4)); in test_high_neighbor()
318 assert_eq!(high_neighbor(&v, 5), (4, 6)); in test_high_neighbor()
328 assert_eq!(high_neighbor(&v, 2), (1, 128)); in test_high_neighbor_ex()
329 assert_eq!(high_neighbor(&v, 3), (1, 128)); in test_high_neighbor_ex()
330 assert_eq!(high_neighbor(&v, 4), (2, 12)); in test_high_neighbor_ex()
331 assert_eq!(high_neighbor(&v, 5), (2, 12)); in test_high_neighbor_ex()
332 assert_eq!(high_neighbor(&v, 6), (3, 46)); in test_high_neighbor_ex()
333 assert_eq!(high_neighbor(&v, 7), (3, 46)); in test_high_neighbor_ex()
334 assert_eq!(high_neighbor(&v, 8), (3, 46)); in test_high_neighbor_ex()
335 assert_eq!(high_neighbor(&v, 9), (1, 128)); in test_high_neighbor_ex()
336 assert_eq!(high_neighbor(&v, 10), (4, 4)); in test_high_neighbor_ex()
337 assert_eq!(high_neighbor(&v, 11), (5, 8)); in test_high_neighbor_ex()
338 assert_eq!(high_neighbor(&v, 12), (2, 12)); in test_high_neighbor_ex()
339 assert_eq!(high_neighbor(&v, 13), (6, 16)); in test_high_neighbor_ex()
340 assert_eq!(high_neighbor(&v, 14), (7, 23)); in test_high_neighbor_ex()
341 assert_eq!(high_neighbor(&v, 15), (8, 33)); in test_high_neighbor_ex()
342 assert_eq!(high_neighbor(&v, 16), (3, 46)); in test_high_neighbor_ex()
343 assert_eq!(high_neighbor(&v, 17), (9, 70)); in test_high_neighbor_ex()
344 assert_eq!(high_neighbor(&v, 18), (1, 128)); in test_high_neighbor_ex()
350 high_neighbor(&[1, 4, 3, 2, 6, 5], 4); in test_high_neighbor_panic()
408 let cur_high_neighbor = high_neighbor(&fl.floor1_x_list, i); in floor_one_curve_compute_amplitude()