[racket] misleading error message about check-satisfied

From: Suzanne Menzel (menzel at indiana.edu)
Date: Thu Jan 29 19:24:01 EST 2015

Hello,

A student wrote the following two line program in BSL:

   (require 2htdp/image)
   (check-satisfied (rectangle 10 "solid" "black") image?)

When Run, the messages are:

   check-satisfied: expects function of one argument in second position. Given image?
   The test passed!

The actual error is with rectangle. It expects four arguments and it’s given only three. One of width or height is missing.

I don’t have a question. I just wanted to let you know about this behavior.

Suzanne



Posted on the users mailing list.