continuing to debug falling rain world program

This commit is contained in:
Danny Yoo 2011-07-20 14:08:41 -04:00
parent cfd65fc782
commit 12ab2a5738

View File

@ -152,10 +152,12 @@
var checkNaturalInRange = makeCheckParameterizedArgumentType(
function(x, a, b) {
return plt.baselib.numbers.isNatural(x) &&
}
if (! plt.baselib.numbers.isNatural(x)) { return false; }
return (plt.baselib.numbers.lessThanOrEqual(a, x) &&
plt.baselib.numbers.lessThan(x, b));
},
function(a, b) {
return plt.baselib.format('natural between ~a and ~a', [a, b])
return plt.baselib.format('natural between ~a and ~a', [a, b]);
});
var checkInteger = makeCheckArgumentType(