Exemplo n.º 1
0
		"should get diametrically opposite point for halfway value" : function(test) {			
			var res = ringutil.getDiametricallyOppositeId('8000000000000000000000000000000000000000');
			
			test.strictEqual('0000000000000000000000000000000000000000', res);
			test.done();
		}
Exemplo n.º 2
0
		"should get diametrically opposite point for high value" : function(test) {			
			var res = ringutil.getDiametricallyOppositeId('ECC00000000000000000000000000000000000A0');
			
			test.strictEqual('6CC00000000000000000000000000000000000A0', res);
			test.done();
		},