37 lines
1.3 KiB
Rust
Raw Normal View History

2024-05-02 14:23:20 +02:00
use nodarium_utils::{
2024-04-24 19:11:00 +02:00
geometry::{create_multiple_paths, create_path, wrap_multiple_paths},
2024-04-25 00:02:02 +02:00
split_args,
2024-04-24 19:11:00 +02:00
};
2024-04-23 03:41:28 +02:00
2024-04-24 19:11:00 +02:00
#[allow(dead_code)]
2024-04-23 03:41:28 +02:00
#[rustfmt::skip]
2024-04-23 17:26:05 +02:00
fn test_split_args(){
2024-04-23 03:41:28 +02:00
let inputs = vec![
vec![0, 1, 0, 4, 1056964608, 1065353216, 1056964608, 1, 4, 1080872141, 1054951342, 32, 1, 1 ],
vec![0, 4, 1056964608, 1065353216, 1056964608, 1, 4],
vec![0, 1, 0, 3, 0, 0, 0, 5, 0, 0, 1073741824, 1073741824, 1, 1, 1, 1, 1, 4, 1065353216, 1054615798, 5, 1, 1 ],
vec![ 0, 1, 0, 3, 0, 0, 0, 1, 4, 1073741824, 1073741824, 32, 1, 1 ],
vec![0, 1, 0, 1, 0, 14, 0, 1056964608, 1056964608, 1056964608, 1058810102, 1056964608, 1069547520, 1056964608, 1050421494, 1056964608, 1075838976, 1056964608, 0, 1, 1, 1, 2, 13, 1, 1],
vec![ 0, 1, 0, 2, 0, 0, 5, 0, 0, 1073741824, 1073741824, 1, 2, 0, 1, 4, 1088212173, 1083388723, 20, 1, 1 ]
];
for input in inputs {
2024-04-25 00:02:02 +02:00
println!("RESULT: {:?}", split_args(&input));
2024-04-23 03:41:28 +02:00
}
}
2024-04-23 17:26:05 +02:00
2024-04-24 19:11:00 +02:00
fn test_path() {
// let path_data = create_path(3, 2);
// println!("{:?}", path_data);
let mut multiple_paths = create_multiple_paths(1, 4, 1);
let mut wrapped_paths = wrap_multiple_paths(&mut multiple_paths);
wrapped_paths[0].points[0] = 1.0;
println!("{:?}", wrapped_paths);
println!("{:?}", multiple_paths);
}
fn main() {
test_path()
}