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

Make fixture verification a bit strict #280

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

sidepelican
Copy link
Collaborator

Currently, in tests, the comparison between the fixture and the actually generated code is done on a word-by-word basis, separated by whitespace.
There might be unnecessary whitespace present in the actually generated code, which is not being detected.

I will make the process slightly more strict and change it to compare on a line-by-line basis.

public private(set) var myStringInBaseSetCallCount = 0
@Published public var myStringInBase: String = "" { didSet { myStringInBaseSetCallCount += 1 } }
@Published public var myStringInBase: String = "" { didSet { myStringInBaseSetCallCount += 1 } }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I could find new bug 🤣

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.

1 participant