-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support for spaces in marbles strings #2842
Comments
AFAIK, this is supported now. I haven't tried it in a while though. |
While spaces are allowed, they influence the frame count, which is bad in my case because I need it only for alignment. |
if you're ok with 3rd party module, peek https://github.com/kwonoj/rx-sandbox . (disclaimer: I wrote it) which support whitespace align in marbles. |
Closing this because spaces have no meaning when the |
@cartant, I was a bit confused at this reasoning first, just to clarify, this issue was opened a long time ago, I can see the user guide updated now with the following:
As well as:
That is cool, and thanks. |
Note that it's only ignored when the |
The following example can be read in Anatomy of a Test:
However, this kind of formatting is not auto-formatter friendly, and I would not follow incompatible practices. And if I recall, the Clean Code book by Robert C. Martin also advises against columned alignment.
What would work however if you let those marbles strings contain spaces. Having to trim manually is an overhead however that I would not do myself, to keep things easily readable.
Edit: I know that we already started using columned alignment in the strings. But by exceeding the boundaries of strings for columned alignment, we make this problem even worse. So all I'm saying is that we keep this special formatting inside the strings where no auto-formatter cares what we do in it.
The text was updated successfully, but these errors were encountered: