Skip to main content

Testing Grids in a Testing Notebook


I have an issue testing functions that generate formatted output. For example:


1) Create a new testing notebook and a new test like this:


unevaluated test



2) Now execute the test (it fails as expected)


executed test


3) Now click the "Replace Output" button and run it again:


failing test


Why is it failing? Lets show the cell expressions to see if there is a hidden difference:


test showing expressions


I don't see any significant difference. So my question is: is this a bug or should I do something different when testing functions that generate grids?


In the meanwhile, I have found that this works:


testing redered views


Testing functions that generate grids fails in this simple example:





Comments