Skip to content

Commit 17cc64b

Browse files
committed
test correction after rebase
1 parent 21f9979 commit 17cc64b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/osm4routing/reader.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ pub fn read(filename: &str) -> Result<(Vec<Node>, Vec<Edge>), String> {
127127
try!(r.read(filename));
128128
r.count_nodes_uses();
129129
let edges = r.edges();
130-
Ok((r.nodes(), edges)
130+
Ok((r.nodes(), edges))
131131
}
132132

133133
#[test]
134134
fn test_real_all() {
135-
let (nodes, ways) = read("src/osm4routing/test_data/minimal.osm.pbf");
135+
let (nodes, ways) = read("src/osm4routing/test_data/minimal.osm.pbf").unwrap();
136136
assert_eq!(2, nodes.len());
137137
assert_eq!(1, ways.len());
138138
}
@@ -188,7 +188,7 @@ fn test_split() {
188188
}
189189

190190
#[test]
191-
#[should_panic]
192191
fn test_wrong_file() {
193-
read("i hope you have no file name like this one");
192+
let r = read("i hope you have no file name like this one");
193+
assert!(r.is_err());
194194
}

0 commit comments

Comments
 (0)