From f38f2bddec357b717ef7f890c2b6742ba8f57c71 Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Fri, 16 Oct 2026 22:23:42 +0800 Subject: [PATCH] fix: test fixture --- tests/slic3rutils/test_dev_mapping.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/slic3rutils/test_dev_mapping.cpp b/tests/slic3rutils/test_dev_mapping.cpp index e46b00128f..c3d0ec33b0 100644 --- a/tests/slic3rutils/test_dev_mapping.cpp +++ b/tests/slic3rutils/test_dev_mapping.cpp @@ -584,7 +584,10 @@ TEST_CASE("Generic external spool is suppressed when its extruder has AMS filame FilamentInfo fila; fila.id = 0; fila.type = "ABS"; - fila.color = "00FF00FF"; + // FilamentInfo.color carries the "#RRGGBBAA" form the GUI builds for a sliced filament + // (SelectMachine/SyncAmsInfoDialog); tray colors are the bare RRGGBBAA DevAmsTray::decode_color + // consumes. A bare string here is not parsed by wxColour's hex branch and reads as black. + fila.color = "#00FF00FF"; std::vector map_opt(4, false); map_opt[MappingOption::USE_LEFT_AMS] = true;