Skip to content

Commit

Permalink
[Rust] Add --experimental-target-pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jul 18, 2023
1 parent 14255cd commit e149eae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions examples/test-rust-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ fn json_tests() -> Result<(), ()> {
"F R U R' U' F'",
)?;

test_search_succeeds(
common::CliCommand::Rust(),
&[
"--experiment
al-target-pattern",
"samples/json/3x3x3/OLL.target-pattern.json",
"--moves",
"U,R,F",
"samples/json/3x3x3/3x3x3-Reid.def.json",
"samples/json/3x3x3/FRURUF.search-pattern.json",
],
None,
"F R U R' U' F'",
)?;

// If no tests failed until now, we're okay!
Ok(())
}
Expand Down
3 changes: 2 additions & 1 deletion samples/json/3x3x3/FRURUF.search-pattern.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"CENTERS": {
"pieces": [0, 1, 2, 3, 4, 5],
"orientation": [0, 0, 0, 0, 0, 0]
"orientation": [0, 0, 0, 0, 0, 0],
"orientationMod": [1, 1, 1, 1, 1, 1]
}
}

0 comments on commit e149eae

Please sign in to comment.