Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new container attribute #[serde(expecting = "...")] for specifing custom expectation message #1916

Merged
merged 2 commits into from Jan 23, 2021

Commits on Oct 22, 2020

  1. Allow to run assert_de_tokens_error on token sequence that is not exp…

    …ected by enum deserializer
    
    Before that fix following code panics, because `Token::Unit` was unexpected by test deserializer:
    ```
    #[derive(Deserialize)]
    enum E { ... }
    
    assert_de_tokens_error::<E>(&[Token::Unit], "...");
    ```
    Mingun committed Oct 22, 2020
    Copy the full SHA
    23c14e5 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    104ad9a View commit details
    Browse the repository at this point in the history