use super::super::measure::classify_shape;
use indicatrix::geometry::cuts::StandardGemCuts;
#[test]
fn classify_shape_calls_the_standard_round_brilliant_round() {
let planes = StandardGemCuts::standard_round_brilliant();
assert_eq!(
classify_shape(&planes, 1.0).as_deref(),
Some("Round"),
"16 girdle facets at lw == 1.0 must classify as Round"
);
}
#[test]
fn classify_shape_ignores_fold_count_entirely() {
let planes = StandardGemCuts::standard_round_brilliant();
assert_eq!(classify_shape(&planes, 1.0).as_deref(), Some("Round"));
}
#[test]
fn classify_shape_refuses_to_guess_for_an_elongated_outline() {
let planes = StandardGemCuts::standard_round_brilliant();
assert_eq!(
classify_shape(&planes, 1.6),
None,
"a 1.6 length/width ratio must not be classified Round"
);
}
#[test]
fn classify_shape_returns_none_without_a_usable_girdle() {
assert_eq!(classify_shape(&[], 1.0), None);
}