summaryrefslogtreecommitdiff
path: root/morphology/examples/test_all_sorting_options.rs
diff options
context:
space:
mode:
authorjacksonfu14 <jackson@fashionunited.com>2025-11-12 06:52:48 +0100
committerJackson Moore <jacksonmoore@tuta.io>2025-11-12 06:52:48 +0100
commitef8a111e9e86d68243f0e0e49a412755b4179aae (patch)
treec83c7dd456532891347dc1657bd0f48c1ad6f642 /morphology/examples/test_all_sorting_options.rs
parentd0e3dc212ea7d855bf5339a5f9904e681e7b363a (diff)
make segrate lengths default for sorting
Diffstat (limited to 'morphology/examples/test_all_sorting_options.rs')
-rw-r--r--morphology/examples/test_all_sorting_options.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/morphology/examples/test_all_sorting_options.rs b/morphology/examples/test_all_sorting_options.rs
index 2b60b3f..e5e796f 100644
--- a/morphology/examples/test_all_sorting_options.rs
+++ b/morphology/examples/test_all_sorting_options.rs
@@ -33,14 +33,14 @@ fn main() {
// Example 1: All defaults
let mut test1 = sequences.clone();
sort_sequences(&mut test1, None);
- print_sequences("Defaults (InterpolateLength, Forward, DepthFirst, IncreasingPositiveFirst)", &test1);
+ print_sequences("Defaults (SegregateLength, Forward, DepthFirst, IncreasingPositiveFirst)", &test1);
- // Example 2: SegregateLength only
+ // Example 2: InterpolateLength only
let mut test2 = sequences.clone();
let opts = SequenceOptions::new()
- .length_sorting(LengthSorting::SegregateLength);
+ .length_sorting(LengthSorting::InterpolateLength);
sort_sequences(&mut test2, opts);
- print_sequences("SegregateLength + defaults", &test2);
+ print_sequences("InterpolateLength + defaults", &test2);
// Example 3: BreadthFirst + Backward
let mut test3 = sequences.clone();
@@ -48,7 +48,7 @@ fn main() {
.sorting_method(SortingMethod::BreadthFirst)
.sorting_direction(SortingDirection::Backward);
sort_sequences(&mut test3, opts);
- print_sequences("BreadthFirst + Backward + InterpolateLength", &test3);
+ print_sequences("BreadthFirst + Backward + SegregateLength", &test3);
// Example 4: All custom options combined
let mut test4 = sequences.clone();
@@ -62,7 +62,7 @@ fn main() {
print_sequences("All custom: SegregateLength + Backward + BreadthFirst + custom precedence", &test4);
println!("\n=== Complete Sorting Options ===");
- println!("LengthSorting: InterpolateLength (default) | SegregateLength");
+ println!("LengthSorting: SegregateLength (default) | InterpolateLength");
println!("SortingDirection: Forward (default) | Backward");
println!("SortingMethod: DepthFirst (default) | BreadthFirst");
println!("PrecedenceOrder: IncreasingPositiveFirst (default) | IncreasingNegativeFirst");