{"size": 902, "ext": "js", "max_stars_repo_path": "test.js", "max_stars_repo_name": "javierojeda94/how-many-pizza", "max_stars_repo_stars_event_min_datetime": "2015-04-28T15:12:02.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-23T20:34:26.000Z", "max_issues_repo_path": "test.js", "max_issues_repo_name": "javierojeda94/how-many-pizza", "max_issues_repo_issues_event_min_datetime": "2017-08-21T00:58:55.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-22T23:49:48.000Z", "max_forks_repo_path": "test.js", "max_forks_repo_name": "javierojeda94/how-many-pizza", "max_forks_repo_forks_event_min_datetime": "2015-04-29T05:45:57.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-22T23:45:35.000Z"}
{"max_stars_count": 9, "max_issues_count": 4, "max_forks_count": 6, "avg_line_length": 33.4074074074, "max_line_length": 69, "alphanum_fraction": 0.7494456763}
'use strict';

var assert = require('assert');
var howManyPizza = require('./index');

assert.strictEqual(howManyPizza(null), 0);
assert.strictEqual(howManyPizza(undefined), 0);
assert.strictEqual(howManyPizza(50), 19);
assert.strictEqual(howManyPizza(1.5), 1);
assert.strictEqual(howManyPizza(5.5), 3);

assert.strictEqual(howManyPizza(null, null), 0);
assert.strictEqual(howManyPizza(undefined, undefined), 0);
assert.strictEqual(howManyPizza(50, 3), 19);
assert.strictEqual(howManyPizza(1.5, 3), 1);
assert.strictEqual(howManyPizza(5.5, 3), 3);

assert.strictEqual(howManyPizza(null, null, null), 0);
assert.strictEqual(howManyPizza(undefined, undefined, undefined), 0);
assert.strictEqual(howManyPizza(50, 3, 8), 19);
assert.strictEqual(howManyPizza(1.5, 3, 8), 1);
assert.strictEqual(howManyPizza(5.5, 3, 8), 3);

assert.strictEqual(howManyPizza(50, 4, 12), 17);

console.log("Tests completed!");
