From bec7017dbb3d4d2a1dd9c4922b11a19446ef1cef Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Fri, 13 May 2022 18:39:31 +0200 Subject: [PATCH] Update Locus test after extensions fix in server see https://github.com/abrensch/brouter/pull/422 --- tests/format/Gpx.test.js | 1 - tests/format/data/2-locus.gpx | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/format/Gpx.test.js b/tests/format/Gpx.test.js index 5888aa8..3404fc7 100644 --- a/tests/format/Gpx.test.js +++ b/tests/format/Gpx.test.js @@ -59,7 +59,6 @@ test('waypoints', () => { describe('voice hints', () => { test('2-locus', () => { let brouterGpx = BR.Xml.pretty(read('2-locus.gpx')); - brouterGpx = brouterGpx.replace(/\n\s*<\/extensions>\n\s*/, ''); // ignore (invalid) double tag // ignore float rounding differences brouterGpx = brouterGpx.replace( /:(rteTime|rteSpeed)>([\d.]*)<\//g, diff --git a/tests/format/data/2-locus.gpx b/tests/format/data/2-locus.gpx index c90df93..36fd087 100644 --- a/tests/format/data/2-locus.gpx +++ b/tests/format/data/2-locus.gpx @@ -5,13 +5,15 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:locus="http://www.locusmap.eu" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" - creator="BRouter-1.6.1" version="1.1"> + creator="BRouter-1.6.3" version="1.1"> 101.5right140.024.909946441650395.6202449221614787 103.5left90.09.6148529052734389.3605176165137064 2-locus - 5 - 1 + + 5 + 1 + 101.5 101.5