Skip to content

Conversation

TianyiShi2001
Copy link
Contributor

---- solution::s0026_remove_duplicates_from_sorted_array::tests::test_26 stdout ----
thread 'solution::s0026_remove_duplicates_from_sorted_array::tests::test_26' panicked at 'assertion failed: `(left == right)`
  left: `[1, 3, 1, 1, 3]`,
 right: `[1, 3]`', src/solution/s0026_remove_duplicates_from_sorted_array.rs:81:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Test failed because the vector wasn't truncated to the new size. Fixed this.

Copy link
Owner

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aylei aylei merged commit a65b4af into aylei:master Nov 12, 2020
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