@@ -409,7 +409,7 @@ mod test {
409
409
fn get_invalid_path_even_index_out_of_range_3 ( ) -> Path {
410
410
let mut path = get_path ( ) ;
411
411
let rel_len_i: isize = path. relationships . len ( ) . try_into ( ) . unwrap ( ) ;
412
- path. indices [ 2 ] = rel_len_i * - 1 - 1 ;
412
+ path. indices [ 2 ] = -rel_len_i - 1 ;
413
413
path
414
414
}
415
415
@@ -434,13 +434,13 @@ mod test {
434
434
#[ test]
435
435
fn test_path_traverse ( ) {
436
436
let path = get_path ( ) ;
437
- let expected_node_ids = vec ! [ "n1" , "n2" , "n1" , "n3" ] ;
438
- let expected_directions = vec ! [
437
+ let expected_node_ids = [ "n1" , "n2" , "n1" , "n3" ] ;
438
+ let expected_directions = [
439
439
RelationshipDirection :: From ,
440
440
RelationshipDirection :: To ,
441
441
RelationshipDirection :: To ,
442
442
] ;
443
- let expected_relationship_ids = vec ! [ "r1" , "r2" , "r1" ] ;
443
+ let expected_relationship_ids = [ "r1" , "r2" , "r1" ] ;
444
444
445
445
let ( start_node, hops) = path. traverse ( ) ;
446
446
assert_eq ! ( start_node. element_id, expected_node_ids[ 0 ] ) ;
0 commit comments