Skip to content

Commit

Permalink
Fix unit tests build
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed May 24, 2024
1 parent ac760c9 commit 1d215c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/gcodeExport.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#ifdef BUILD_TESTS
#include <gtest/gtest_prod.h> //To allow tests to use protected members.
#endif
#include <optional>
#include <sstream> // for stream.str()
#include <stdio.h>

Expand All @@ -26,6 +27,7 @@ namespace cura

class RetractionConfig;
class SliceDataStorage;
class SliceLayerPart;
struct WipeScriptConfig;

// The GCodeExport class writes the actual GCode. This is the only class that knows how GCode looks and feels.
Expand Down
4 changes: 2 additions & 2 deletions tests/ExtruderPlanTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ class ExtruderPlanTestPathCollection
GCodePathConfig travel_config;

ExtruderPlanTestPathCollection()
: extrusion_config(GCodePathConfig{ .type = PrintFeatureType::OuterWall,
: extrusion_config(GCodePathConfig{ .type_ = PrintFeatureType::OuterWall,
.line_width = 400,
.layer_thickness = 100,
.flow = 1.0_r,
.speed_derivatives = SpeedDerivatives{ .speed = 50.0, .acceleration = 1000.0, .jerk = 10.0 } })
, travel_config(GCodePathConfig{ .type = PrintFeatureType::MoveCombing,
, travel_config(GCodePathConfig{ .type_ = PrintFeatureType::MoveCombing,
.line_width = 0,
.layer_thickness = 100,
.flow = 0.0_r,
Expand Down

0 comments on commit 1d215c3

Please sign in to comment.