-
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
Marble diagram tests just don't work for synchronous scenarios #304
Comments
Why do you even need a marble diagram for purely synchronous cases? I think the DSL should be used only where convenient. |
And since it is just a string, you can invent new notation for the sync case, like [1,2,3] or 1#2#3. |
Imagine I've been thinking of something like @headinthebox was saying, but it messes with the ability to line them up.
I suppose the upside is, since they're tests you can specify that this shouldn't happen, but it worries me that I'll run into something else I haven't considered |
Then just define e3 differently:
|
Right. That's what I was saying. I'm just worried that there's something else I'm missing |
Completely irrelevant to this thread, but since we're at it, for purely aesthetic purposes I prefer parentheses:
|
I like that, it doesn't visually match the pipe as much |
For example:
Observable.of(1,2,3)
... how are you going to represent 3 values and a completion in 1 frame?123|
? and then how does that "line up" to expected results? What about 3 values and an error? what about 100ms, then 14 synchronous values, then 200ms then one value and it completes?It's a shame because I find the look of the test DSL very compelling.
@mattpodwysocki can say "I told you so". :p
cc/@staltz and @trxcllnt
The text was updated successfully, but these errors were encountered: