Gianfrancoalongi / APLUnit

APLUnit - a library to facilitate Unit Testing and Test Driven Development of code written in Dyalog APL, developed together with Morten Kromberg (CTO Dyalog Ltd)
7 stars 5 forks source link

Failure case 'Got' and 'Expected' text is cut #5

Closed Gianfrancoalongi closed 11 years ago

Gianfrancoalongi commented 11 years ago

On failure, there are cases where the expected and got text seems to be off in some way. I have seen it happen when the displayed version of the Got is large.

I will provide an exact example of this.

Gianfrancoalongi commented 11 years ago

Now I see that this happens for the Expected text as well. This is enough to reproduce the problem.

∇ Z ← bug_TEST

.UT.expect ← ((1 (1 2)) (2 (1 2 3)))

    Z ← (⊂(1 (1 2)) ⊂(2 (1 2 3))) 

Gianfrancoalongi commented 11 years ago

Found the bug, and fixed it. I had swapped the amount of rows for Expected Term and Got Term