UNPKG

@foxglove/ros1

Version:

Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer

17 lines 823 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const concatData_1 = require("./concatData"); describe("concatData", () => { it("concatData works", () => { expect((0, concatData_1.concatData)([])).toEqual(new Uint8Array()); expect((0, concatData_1.concatData)([new Uint8Array([1, 2, 3])])).toEqual(new Uint8Array([1, 2, 3])); expect((0, concatData_1.concatData)([new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6])])).toEqual(new Uint8Array([1, 2, 3, 4, 5, 6])); expect((0, concatData_1.concatData)([ new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6]), new Uint8Array(), new Uint8Array([7]), ])).toEqual(new Uint8Array([1, 2, 3, 4, 5, 6, 7])); }); }); //# sourceMappingURL=concatData.test.js.map