18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 04:47:06 +01:00
Files
maszyna/tests
maj00r c0e6a70f5f test(editor): the recognition of old tracks measured on sceneries of the game, read only, skipped unless asked for
editor-tracks-tests.md §4 "E6", the measure: tests/unit/test_takeover_measure.cpp, a case skipped by default (it needs the data of the game,
so it isn't a test of the build), run as
  EU07_TAKEOVER_MEASURE="<scenery folder>;<file>;..." eu07_unit_tests --no-skip --test-case="takeover measure*"
It reads the tracks of each file with its includes, takes all the plain ones over in a plan (nothing laid, nothing written) and prints the
lines made, how far they keep off their old tracks in the plan, the height and the cant, how many would be taken over with no question and
why the others ask it, what the domain lays otherwise (kinks, compound curves, cants with no transition), the worst lines;
EU07_TAKEOVER_TRACK=<name> prints the curves found and the vertices of the line of a track.

Measured on the game data, read only (baltyk/baltyk_torowisko.scm, l02/l02_tory.scm, linia61/l61_tory.scm, lk197/lk197_tory_uniwersalne.scm,
drawinowo/tory.scm, calkowo_v2/v2_tory.scm): 31 411 tracks (2 111 switches), 3 594 lines of 30 297 tracks, 1 477 km, 2 chains not laid,
8 minutes. With no question 3 112 lines (87 %) but 591 km (40 %): the short tracks of the stations fit within 5 mm, the long lines drawn by
hand ask. The farthest in the plan: up to 5 mm 2 890 lines, 10 mm 195, 20 mm 113, 50 mm 134, 100 mm 97, 500 mm 99, more 66 (bulging
Bezier curves, compound curves of stations, a few tracks of no sense). The question for 482: the plan 297, the height 74 (buffer stops of
tracks climbing a metre), the cant 12, more than one 99.
2026-11-23 16:59:29 +01:00
..