-
Notifications
You must be signed in to change notification settings - Fork 10
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
[WIP] Print actual results with --print #22
base: master
Are you sure you want to change the base?
Conversation
I need help the parsing of a comment line: The parsed comment line discards the comment character ( I think it would be better to store the full comment line for this reasons:
But I couldn't figure out how to change that line so that |
Here's a rewrite of commentline that should work, though it could be made much more compact: commentline = try (do
prefix <- many1 (char '*') <|> (whitespace >> many1 (char '#'))
rest <- lineoreof
return $ prefix ++ rest
) <?> "commentline" |
I know, this are a lot of changes already. I implemented your suggestion to parse I also added a field As far as I see, the biggest remaining problem is the "shared input". I don't even understand how the syntax works (haven't analyzed the parser yet). Currently, |
@schoettl I had a go at removing the actual output printing for now, but better to let you do it if possible. Would you mind removing just that part, and combining the rest into a single commit rebased on latest master ? |
Oh shared input. It just means that after an input you can write more than one tests, and they'll all use it. Sorry for the hassle, but we will need to preserve this in the output. |
Alright, I'll try to separate it. |
Yeah... that will mean more changes in the parser and probably two constructors for Like Do you agree? |
I don't have insight on that right now.. if you think it's the best option, let's give it a try. |
I see what you mean, currently we don't model shared inputs in the type. If you want, that can be postponed for a future PR. |
Yup, I think that's a good idea. |
d957bb9
to
e7b4f36
Compare
I re-implemented the This feature requires I'm open to changes about the option naming. Alternatives I considered:
FYI, the options around I would add tests and doc, if this PR is a merge candidate. |
The concept of this addition to Either non-matching-result matching-result where result can be stdin/stdout/exit status. From that and depending on the
|
Blocker: #26 |
e7b4f36
to
c17e923
Compare
I will rebase when PR for #26 is merged. |
This reverts commit 531c67f.
c17e923
to
312ad3c
Compare
The comments at begin of file are still not parsed. Thats because I don't quite understand this part of code. @simonmichael maybe you can look into it if you have time. |
This is conflicting now - I had a look at resolving it but it's a bit much for me to tackle just at the moment, sorry. |
Closes #21
CLI proposal
TODO
printShellTest
>=
/>
/>2
#
or*
.--print
--print --actual