racket/collects/tests/honu/basic.honu
Jon Rafkind 09c6c96099 add a test for const
svn: r13750
2009-02-19 22:15:58 +00:00

20 lines
271 B
Plaintext

#lang honu
obj test(t, a, b){
if (a != b){
display(t);
display(" failed!");
newline();
display("Got ");
display(a);
display(". Expected ");
display(b);
newline();
}
}
var x = 3;
const y = 2;
test("x = 3", x, 3);
test("y = 2", y, 2);