Address Yury's PR comments.

This commit is contained in:
Brendan Dahl 2011-12-30 09:24:13 -08:00
parent 20dace0513
commit 6afb49c6c6
3 changed files with 60 additions and 31 deletions

View file

@ -145,7 +145,16 @@ describe('function', function() {
// TODO ceiling
// TODO copy
// TODO cos
// TODO cvi
it('converts to int', function() {
var stack = evaluate('{ 9.9 cvi }');
var expectedStack = [9];
expect(stack).toMatchArray(expectedStack);
});
it('converts negatives to int', function() {
var stack = evaluate('{ -9.9 cvi }');
var expectedStack = [-9];
expect(stack).toMatchArray(expectedStack);
});
// TODO cvr
// TODO div
it('duplicates', function() {