mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
import imulh from 'core-js-pure/full/math/imulh';
|
|
|
|
QUnit.test('Math.imulh', assert => {
|
|
assert.isFunction(imulh);
|
|
assert.arity(imulh, 2);
|
|
assert.name(imulh, 'imulh');
|
|
assert.same(imulh(0xFFFFFFFF, 7), -1);
|
|
assert.same(imulh(0xFFFFFFF, 77), 4);
|
|
assert.same(imulh(1, 7), 0);
|
|
assert.same(imulh(-1, 7), -1);
|
|
});
|