diff options
Diffstat (limited to 'school/node_modules/cuint/test/UINT64_equals-test.js')
-rw-r--r-- | school/node_modules/cuint/test/UINT64_equals-test.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/school/node_modules/cuint/test/UINT64_equals-test.js b/school/node_modules/cuint/test/UINT64_equals-test.js deleted file mode 100644 index 6672c4d..0000000 --- a/school/node_modules/cuint/test/UINT64_equals-test.js +++ /dev/null @@ -1,62 +0,0 @@ -var assert = require('assert') -var UINT64 = require('..').UINT64 - -describe('equals method', function () { - - describe('0==0', function () { - - it('should return true', function (done) { - var u = UINT64(0).equals( UINT64(0) ) - - assert( u ) - done() - }) - - }) - - describe('1==1', function () { - - it('should return true', function (done) { - var u = UINT64(1).equals( UINT64(1) ) - - assert( u ) - done() - }) - - }) - - describe('low bit', function () { - - it('should return true', function (done) { - var u = UINT64(3).equals( UINT64(3) ) - - assert( u ) - done() - }) - - }) - - describe('high bit', function () { - - it('should return true', function (done) { - var n = Math.pow(2, 17) - var u = UINT64(n).equals( UINT64(n) ) - - assert( u ) - done() - }) - - }) - - describe('1!=2', function () { - - it('should return false', function (done) { - var u = UINT64(1).equals( UINT64(2) ) - - assert( !u ) - done() - }) - - }) - -}) |