From b202d52c48097acb9deec7e84ba28769c9ccd41d Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 4 Jan 2016 11:51:51 +1300 Subject: [PATCH] Add clear max point to "back" testcase This should avoid the station reported as the maximum varying with the CPU architecture. --- tests/back.out | 18 +++++++++--------- tests/back.pos | 1 + tests/back.svx | 4 ++++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/tests/back.out b/tests/back.out index 3f536a1e..2711ef64 100644 --- a/tests/back.out +++ b/tests/back.out @@ -15,15 +15,15 @@ Calculating trailing traverses... Calculating statistics... -Survey contains 14 survey stations, joined by 13 legs. +Survey contains 15 survey stations, joined by 14 legs. There is 1 loop. Survey has 2 connected components. -Total length of survey legs = 49.00m ( 49.00m adjusted) -Total plan length of survey legs = 47.79m -Total vertical length of survey legs = 4.50m -Vertical range = 0.50m (from r at 0.00m to e at -0.50m) -North-South range = 10.00m (from r at 10.00m to 1 at 0.00m) -East-West range = 0.00m (from x at 0.00m to z at 0.00m) - 13 1-nodes. - 1 13-node. +Total length of survey legs = 88.00m ( 88.00m adjusted) +Total plan length of survey legs = 62.79m +Total vertical length of survey legs = 40.50m +Vertical range = 36.50m (from max at 36.00m to e at -0.50m) +North-South range = 12.00m (from max at 12.00m to 1 at 0.00m) +East-West range = 9.00m (from max at 9.00m to z at 0.00m) + 14 1-nodes. + 1 14-node. There were 2 warning(s). diff --git a/tests/back.pos b/tests/back.pos index e8492e39..4d032223 100644 --- a/tests/back.pos +++ b/tests/back.pos @@ -9,6 +9,7 @@ ( 0.00, 0.87, -0.50 ) c ( 0.00, 0.87, -0.50 ) d ( 0.00, 0.87, -0.50 ) e +( 9.00, 12.00, 36.00 ) max ( 0.00, 10.00, 0.00 ) r ( 0.00, 10.00, 0.00 ) x ( 0.00, 10.00, 0.00 ) y diff --git a/tests/back.svx b/tests/back.svx index 4af4f0a3..9d789f72 100644 --- a/tests/back.svx +++ b/tests/back.svx @@ -20,3 +20,7 @@ ; as we were using 0 for the BACKCOMPASS s.d. which leads to a threshold of ; about 71% of what it should be: 1 R 10 001.178 198.822 -1.178 -1.178 + +*data cartesian from to dx dy dz +; Work around variation in which station is picked for the maximum: +1 max 9 12 36 -- 2.11.4.GIT