Change default cap_style to dome.

This commit is contained in:
dongar committed 2024-06-13 11:15:05 -05:00
1 parent 860ac88b61
commit ffa151135b
2 files changed
+7 -14

No files matched your search

+6 -13
View File
@@ -134,14 +134,7 @@ mod tests {
#[test] #[test]
fn defaults() { fn defaults() {
validate_mushroom_from_args( validate_mushroom_from_args(["prog"], 66.0, 5.0, 34.0, 50.0, mushroom::CapStyle::Dome);
["prog"],
66.0,
5.0,
34.0,
50.0,
mushroom::CapStyle::Cylinder,
);
} }
#[test] #[test]
@@ -152,7 +145,7 @@ mod tests {
10.0, 10.0,
68.0, 68.0,
100.0, 100.0,
mushroom::CapStyle::Cylinder, mushroom::CapStyle::Dome,
); );
} }
@@ -164,7 +157,7 @@ mod tests {
10.0, 10.0,
180.0, 180.0,
100.0, 100.0,
mushroom::CapStyle::Cylinder, mushroom::CapStyle::Dome,
); );
} }
@@ -176,7 +169,7 @@ mod tests {
10.0, 10.0,
20.0, 20.0,
100.0, 100.0,
mushroom::CapStyle::Cylinder, mushroom::CapStyle::Dome,
); );
} }
@@ -196,13 +189,13 @@ mod tests {
"--cap-d", "--cap-d",
"50", "50",
"--cap-style", "--cap-style",
"dome", "pointed",
], ],
20.0, 20.0,
15.0, 15.0,
40.0, 40.0,
25.0, 25.0,
mushroom::CapStyle::Dome, mushroom::CapStyle::Pointed,
); );
} }
} }
+1 -1
View File
@@ -2,8 +2,8 @@ use serde_derive::Serialize;
#[derive(clap::ValueEnum, Clone, Default, Debug, Serialize, PartialEq)] #[derive(clap::ValueEnum, Clone, Default, Debug, Serialize, PartialEq)]
pub enum CapStyle { pub enum CapStyle {
#[default]
Cylinder, Cylinder,
#[default]
Dome, Dome,
Pointed, Pointed,
} }