using the $[...] notation as expected output
Is it possible to use the $[…] notation to test string output?
Submitted by Maartje on 4 August 2011 at 15:01
/**
* Testcases Pretty-Print
*/
test Rename S-Rule
module test-prettyprint
rules
bar( refactor format-refactoring to
$[module test-prettyprint
rules
bar(|x) = map(x)]
Issue Log
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