Skip to content

Commit a0ba0ce

Browse files
committed
Fix geo test
1 parent 08b4020 commit a0ba0ce

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

postgres/tests/types/geo.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ fn test_box_params() {
2222
&[
2323
(
2424
Some(Rect {
25-
min: Coordinate { x: -3.14, y: 1.618, },
26-
max: Coordinate { x: 160.0, y: 69701.5615, },
25+
min: Coordinate { x: -3.14, y: 1.618 },
26+
max: Coordinate {
27+
x: 160.0,
28+
y: 69701.5615,
29+
},
2730
}),
2831
"BOX(POINT(160.0, 69701.5615), POINT(-3.14, 1.618))",
2932
),
@@ -35,9 +38,12 @@ fn test_box_params() {
3538
#[test]
3639
fn test_path_params() {
3740
let points = vec![
38-
Point::new(0.0, 0.0),
39-
Point::new(-3.14, 1.618),
40-
Point::new(160.0, 69701.5615),
41+
Coordinate { x: 0., y: 0. },
42+
Coordinate { x: -3.14, y: 1.618 },
43+
Coordinate {
44+
x: 160.0,
45+
y: 69701.5615,
46+
},
4147
];
4248
test_type(
4349
"PATH",

0 commit comments

Comments
 (0)