Skip to content

Commit

Permalink
FREEZE.indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 23, 2023
1 parent ac259e3 commit 5ca5bf8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions examples/test-cpp_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod cpp_port;

// Run using: cargo run --release --example test-cpp_port
fn main() {
let num_moves = 100000000;
let num_moves = 1000000;
test_packed(num_moves);
test_unpacked(num_moves);
}
Expand Down Expand Up @@ -90,13 +90,14 @@ fn test_unpacked(num_moves: usize) {
for i in 0..num_moves {
state = state.apply_transformation(&move_transformations[i % 18]);
}
assert_eq!(
state,
kpuzzle
.start_state()
.apply_alg(&parse_alg!("U2 F2 L2 U2 D2 F2 R2 F2 R'").unwrap())
.unwrap()
);
// Only works for a million
// assert_eq!(
// state,
// kpuzzle
// .start_state()
// .apply_alg(&parse_alg!("U2 F2 L2 U2 D2 F2 R2 F2 R'").unwrap())
// .unwrap()
// );
let duration = start.elapsed();
println!(
"Time elapsed for {} moves (unpacked): {:?}",
Expand Down

0 comments on commit 5ca5bf8

Please sign in to comment.