0

So I'm at a loss as to why this test fails. When I run the statements in the repl everything appears to work correctly but the fiveam test fails.

There is a test case in the following gist: https://gist.github.com/PuercoPop/5765844

the fiveam test fails with the following message. I don't understand why the second board is displayed differently (with new lines):

EXPECTED-BOARD evaluated to (:EMPTY :|2| :|3| :|4| :|5| :|6| :|7| :|8| :|9|),  
which is not EQUAL to (:EMPTY
                       :|2|
                       :|3|
                       :|4|
                       :|5|
                       :|6|
                       :|7|
                       :|8|
                       :|9|)..
4

1 回答 1

2

您正在修改常量数据。当您修改常量数据时,允许发生奇怪的事情。如果有一半的机会你会释放一个破坏性的功能(如“修改数据......”)使用(list ...)而不是创建你的列表'(...)

于 2013-06-12T16:59:09.947 回答