Publish 0.002 with a setup lookup, a name-only car, and the deeper car setup.

This commit is contained in:
RallyBlock committed 2026-10-22 23:10:06 -07:00
1 parent ffad275e13
commit ecd5c286dd
15 files changed
+478 -165

No files matched your search

@@ -35,6 +35,45 @@ class SetupLogTest {
assertTrue(setupDiffs(sheet, sheet.copy(note = "perch tweak")).isEmpty())
}
@Test
fun deepSetupShowsWeightsHeightPinionAndBrake() {
val original = SetupSheet(
recordedAt = 1L,
weightLf = 800,
weightRf = 760,
weightLr = 740,
weightRr = 700,
rideHeight = 5.0,
pinion = -2.0,
brakeFront = 62.0,
)
val later = original.copy(
weightLf = 820,
rideHeight = 5.2,
pinion = -1.5,
brakeFront = 65.0,
)
assertEquals(
listOf(
"Weights LF 800 RF 760 LR 740 RR 700 lb",
"From the weights Left 51.3% Rear 48% Cross 50%",
"Ride height 5 in",
"Pinion -2.0°",
"Front brake 62%",
),
setupLines(original),
)
assertEquals(
listOf(
"LF weight 800 lb → 820 lb",
"Ride height 5 in → 5.2 in",
"Pinion -2.0° → -1.5°",
"Front brake 62% → 65%",
),
setupDiffs(original, later),
)
}
@Test
fun originalLinesSkipBlankFields() {
val lines = setupLines(SetupSheet(recordedAt = 1L, crossPercent = 53.5, blockLr = 2.0))