explorable-viz / fluid

Data-linked visualisations
http://f.luid.org
MIT License
36 stars 2 forks source link

Basic backward slicing tests #294

Closed rolyp closed 3 years ago

rolyp commented 4 years ago

Test cases for forward and backward slicing, starting with primitive operations, the infrastructure for which is quite complex.

@min-nguyen suggested using the prettyprinter for tests, which will make life simpler. For now, have added a bracketsIf prettyprinter which wraps a Doc in square brackets iff an annotation is true, and used it initially just for integers.

Basic backward slicing tests:

rolyp commented 4 years ago

@min-nguyen Extracted from #284. Now that we have a more stable base, let’s try to move forward with smaller tasks.

rolyp commented 4 years ago

@min-nguyen For the map example, I suggest just mapping the identity function to a 3-element list to start with, and slicing out the middle element of the input.

rolyp commented 4 years ago

@min-nguyen Let’s leave this for now and come back to it when we start working on examples for the paper.