Change default cap_style to dome.
This commit is contained in:
1 parent
860ac88b61
commit
ffa151135b
2 files changed
+7
-14
No files matched your search
+6
-13
@@ -134,14 +134,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn defaults() {
|
||||
validate_mushroom_from_args(
|
||||
["prog"],
|
||||
66.0,
|
||||
5.0,
|
||||
34.0,
|
||||
50.0,
|
||||
mushroom::CapStyle::Cylinder,
|
||||
);
|
||||
validate_mushroom_from_args(["prog"], 66.0, 5.0, 34.0, 50.0, mushroom::CapStyle::Dome);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -152,7 +145,7 @@ mod tests {
|
||||
10.0,
|
||||
68.0,
|
||||
100.0,
|
||||
mushroom::CapStyle::Cylinder,
|
||||
mushroom::CapStyle::Dome,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -164,7 +157,7 @@ mod tests {
|
||||
10.0,
|
||||
180.0,
|
||||
100.0,
|
||||
mushroom::CapStyle::Cylinder,
|
||||
mushroom::CapStyle::Dome,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -176,7 +169,7 @@ mod tests {
|
||||
10.0,
|
||||
20.0,
|
||||
100.0,
|
||||
mushroom::CapStyle::Cylinder,
|
||||
mushroom::CapStyle::Dome,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -196,13 +189,13 @@ mod tests {
|
||||
"--cap-d",
|
||||
"50",
|
||||
"--cap-style",
|
||||
"dome",
|
||||
"pointed",
|
||||
],
|
||||
20.0,
|
||||
15.0,
|
||||
40.0,
|
||||
25.0,
|
||||
mushroom::CapStyle::Dome,
|
||||
mushroom::CapStyle::Pointed,
|
||||
);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,8 +2,8 @@ use serde_derive::Serialize;
|
||||
|
||||
#[derive(clap::ValueEnum, Clone, Default, Debug, Serialize, PartialEq)]
|
||||
pub enum CapStyle {
|
||||
#[default]
|
||||
Cylinder,
|
||||
#[default]
|
||||
Dome,
|
||||
Pointed,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user