Thursday, 31 January 2013

Confused

I might have missed a few lectures in the past week, and I am confused on what check-expect does. Maybe someone can enlighten me in the parameters.

1 comment:

  1. (check-expect expression expected-expression) is like executing the following in a less modular language:

    check-expect(expression, expected-expression);

    It basically checks that the first expression evaluates to the same value as the expected-expression.

    ReplyDelete