Page MenuHomeSealhub

No OneTemporary

diff --git a/tests/test.js b/tests/test.js
new file mode 100644
index 00000000..97237516
--- /dev/null
+++ b/tests/test.js
@@ -0,0 +1,25 @@
+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);
+ }
+ }
+ }
+}).run();
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 8, 13:07 (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034615
Default Alt Text
(884 B)

Event Timeline