@ton/core
Version:
Core TypeScript library that implements low level primitives for TON blockchain.
16 lines (15 loc) • 483 B
JavaScript
/**
* Copyright (c) Whales Corp.
* All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const crc16_1 = require("./crc16");
describe('crc16', () => {
it('should match test vector', () => {
expect((0, crc16_1.crc16)(Buffer.from('123456789'))).toEqual(Buffer.from('31c3', 'hex'));
});
});
;