UNPKG

choprify

Version:

Provides the wisdom of Deepak Chopra

24 lines (19 loc) 760 B
/* jshint node: true */ /* eslint-env node, browser */ "use strict"; var vows = require("vows"), assert = require("assert"); // Create a Test Suite vows.describe("Division by Zero").addBatch({ "when dividing a number by zero" : { "topic" : function() { return 42 / 0; }, "we get Infinity" : function(topic) { assert.equal(topic, Infinity); } }, "but when dividing zero by zero" : { "topic" : function() { return 0 / 0; }, "we get a value which" : { "is not a number" : function(topic) { assert.isNaN(topic); }, "is not equal to itself" : function(topic) { assert.notEqual(topic, topic); } } } }).export(module);