From e149eae89212cc8b19327d98aeec082f6fcec81b Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Tue, 18 Jul 2023 05:21:24 -0700 Subject: [PATCH] [Rust] Add `--experimental-target-pattern`. --- examples/test-rust-cli.rs | 15 +++++++++++++++ samples/json/3x3x3/FRURUF.search-pattern.json | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/examples/test-rust-cli.rs b/examples/test-rust-cli.rs index 15eca7eb..1009133c 100644 --- a/examples/test-rust-cli.rs +++ b/examples/test-rust-cli.rs @@ -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(()) } diff --git a/samples/json/3x3x3/FRURUF.search-pattern.json b/samples/json/3x3x3/FRURUF.search-pattern.json index 5baad8fc..92e57031 100644 --- a/samples/json/3x3x3/FRURUF.search-pattern.json +++ b/samples/json/3x3x3/FRURUF.search-pattern.json @@ -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] } } \ No newline at end of file