Test for ISBN Verifier exercise

Exploring community solutions of this exercise I found this solution that completely ignores invalid characters. This is because all the test that has invalid characters, also has a invalid ISBN. So I think it will be good to add a test that has a valid ISBN with invalid characters, like this one:

#[test]
fn valid_isbn_with_invalid_characters() {
    assert!(is_valid_isbn("3-598-P21508-8"));
}

See [ISBN Verifier] Need one more test - #8 by IsaacG

1 Like

Thanks Isaac. I’m only subscribed to the Rust topic, so I missed that other thread. (feel free to ping me about Rust stuff in other topics)

sync PR