Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Mark output lines as optional #20

Open
Flimm opened this issue Jan 20, 2017 · 1 comment
Open

Mark output lines as optional #20

Flimm opened this issue Jan 20, 2017 · 1 comment

Comments

@Flimm
Copy link

Flimm commented Jan 20, 2017

I would like to be able to write this code:

  $ command
  Good morning (optional)
  Hello.

I expect the command being tested to either output "Good morning\nHello.\n" or "Hello.\n". I don't see how this is possible, but an (optional) option would be very useful.

This is related to #14 .

@roman-neuhauser
Copy link

What if you have multiple optional lines?

$ command
one (opt)
two (opt)
three (opt)
four (opt)

Should they be optional independently, or en bloc? IOW, is it ok for command to output eg.

two
four

Perhaps worse, what would the diff look like here?

$ command
one
two (opt)
three

Actual output:

one
twenty
three

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants