mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
QUnit.test('Math.imulh', assert => {
|
|
const { imulh } = Math;
|
|
assert.isFunction(imulh);
|
|
assert.name(imulh, 'imulh');
|
|
assert.arity(imulh, 2);
|
|
assert.looksNative(imulh);
|
|
assert.nonEnumerable(Math, '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);
|
|
});
|