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

pipe-characters in value of data table cell #1024

Open
Vampire opened this issue Sep 3, 2019 · 2 comments

Comments

@Vampire
Copy link
Contributor

commented Sep 3, 2019

I'd like to be able to do something like the following:

        where:
            testee                                                | _
            restrictionChainElement                               | _
            restrictionChainElement & restrictionTwo.getClass()   | _
            (restrictionChainElement | restrictionTwo.getClass()) | _
            restrictionChainElement.negate()                      | _

where in the next to last line the pipe character is part of the actual cell value, calculating an or.

@rtretyak

This comment has been minimized.

Copy link

commented Sep 3, 2019

Not sure if I understood correctly, but I guess you can do sth like

        where:
        var                      | _
        {it -> false | false }() | _
        {it -> true | false }()  | _

or add a helper method that would calculate the restriction based on input params

@Vampire

This comment has been minimized.

Copy link
Contributor Author

commented Sep 3, 2019

Urgh, yes this works, thanks, but I think this is very ugly.
Besides that IntelliJ cannot handle this syntax properly.
As it is actually an or method in this case, I just use the or method, but it would be nice if for example parenthese would work like suggested in my original post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.