Skip to content

Conversation

@boltomli
Copy link
Contributor

Recent change makes the case faster and on a modern CPU it generates unstable results running cargo test

  • pass
  • fail thread 'year2016::day17::part1_test' panicked at tests\year2016\day17.rs:8:5 with either one of the following failures
    • failure 1: left: "DRRULDDULRDLUURLRLDRRURLRLDDRD" right: "DDRRRD"
    • failrue 2: left: "" right: "DDRRRD"

Add a check to the condition.

Recent change makes the case faster and on a modern CPU it generates unstable results running `cargo test`
* pass
* fail `thread 'year2016::day17::part1_test' panicked at tests\year2016\day17.rs:8:5` with either one of the following failures
  * failure 1: left: "DRRULDDULRDLUURLRLDRRURLRLDDRD" right: "DDRRRD"
  * failrue 2: left: "" right: "DDRRRD"

Add a check to the condition.
@maneatingape maneatingape merged commit 5082353 into maneatingape:main Dec 16, 2025
3 checks passed
@maneatingape
Copy link
Owner

Good catch, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants