Implement parsing of data_version in nearest tests

This commit is contained in:
Dennis
2024-06-05 18:26:39 +02:00
parent f1ad997a4b
commit 9003881a77
3 changed files with 52 additions and 28 deletions
+1
View File
@@ -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 {
+1 -1
View File
@@ -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>,
}