Implement parsing of data_version in nearest tests
This commit is contained in:
@@ -2,6 +2,7 @@ use std::io::{self, Write};
|
||||
|
||||
use cucumber::{cli, event, parser, Event};
|
||||
// TODO: add colors
|
||||
// TODO: print summary at the end
|
||||
pub struct DotWriter;
|
||||
|
||||
impl<W: 'static> cucumber::Writer<W> for DotWriter {
|
||||
|
||||
@@ -8,7 +8,6 @@ pub struct Waypoint {
|
||||
pub distance: f64,
|
||||
pub name: String,
|
||||
location: [f64; 2],
|
||||
pub data_version: Option<String>,
|
||||
}
|
||||
|
||||
impl Waypoint {
|
||||
@@ -21,4 +20,5 @@ impl Waypoint {
|
||||
pub struct NearestResponse {
|
||||
pub code: String,
|
||||
pub waypoints: Vec<Waypoint>,
|
||||
pub data_version: Option<String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user