This commit is contained in:
2026-09-03 16:09:22 +08:00
parent 904b495613
commit dac02e5253
6 changed files with 63 additions and 38 deletions
@@ -38,6 +38,15 @@ test('volume ceiling removes binary floating point noise before scaling', () =>
assert.match(source, /Number\.EPSILON \* Math\.max\(1, Math\.abs\(value\)\) \* 4/)
})
test('measurement draft lets the server apply each dimension addition exactly once', () => {
assert.match(source, /length: replacement\.length \+ dimensionAddition/)
assert.match(source, /coefficientMode: 'ADD'/)
assert.match(source, /measuredItem\.outerLengthCm == null/)
assert.doesNotMatch(source, /outerLengthCm: item\.outerLengthCm/)
assert.doesNotMatch(source, /outerLengthCm: measuredItem\.outerLengthCm/)
assert.match(cartonTests, /getOuterLengthCm\(\)\)\.isEqualByComparingTo\("62\.000"\)/)
})
test('demo package freezes repeated label printing and Mojia dimension replacement', () => {
assert.match(labelTests, /repeatedAndPartialPrintsReadFrozenMappingWithoutReallocation/)
assert.match(labelTests, /changedCargoKeepsTheFirstFrozenBoxCodes/)