UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

15 lines (13 loc) 415 B
var bresenham = require('../'); describe('Bresenham', function() { it('should call the callback once with one point', function() { var called = 0; bresenham(0, 0, 0, 0, function() { called++; }); called.should.equal(1); }); it('should call the callback with every point', function() { var called = 0; bresenham(0, 0, 5, 0, function() { called++; }); called.should.equal(6); }); });