Is it possible to use the $[…] notation to test string output?

* Testcases Pretty-Print
test Rename S-Rule

module test-prettyprint
refactor format-refactoring to
$[module test-prettyprint
bar(|x) = map(x)]

Submitted by Maartje on 4 August 2011 at 15:01

On 4 August 2011 at 15:05 Maartje tagged testing

On 4 August 2011 at 15:08 Lennart Kats commented:

It could be implemented, but would be a bit tricky. You’d need to add it to the testing syntax and use the desugaring of the Stratego compiler (libstrc) to get the string from a $[] string quotation. Depending on the use cases, using a traditional, unindented multi-line "" string might be easier.

On 7 September 2011 at 12:11 Lennart Kats tagged minor

Log in to post comments