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

Path misleading display #146

Open
PikachuEXE opened this issue Jan 23, 2025 · 0 comments
Open

Path misleading display #146

PikachuEXE opened this issue Jan 23, 2025 · 0 comments

Comments

@PikachuEXE
Copy link

I wrote a unit test for error message testing path & error message
My original unit test assert looks like

        assert_eq!(
            invalid_record.validate().unwrap_err().into_inner()[0],
            (
                Path::new("content_fingerprints").join("0"),
                Error::new("value is not a trimmed string"),
            ),
        );

And I got error

Image

But actually the assert should be like

        assert_eq!(
            invalid_record.validate().unwrap_err().into_inner()[0],
            (
                Path::new("content_fingerprints").join(0),
                Error::new("value is not a trimmed string"),
            ),
        );
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

No branches or pull requests

1 participant