Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10361384
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
884 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 8, 13:07 (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034615
Default Alt Text
(884 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment