sajaniemi_variable_dataset_large / pool /shard003 /JavaScript /0019029_read-exception-status.js
Pendigard's picture
Upload folder using huggingface_hub (part 43)
cbc76af verified
Raw History Blame Contribute Delete
571 Bytes
var assert = require("assert");
var Help = require("../help");
describe("Read Exception Status", function () {
it("should be [] => [ data ]", function () {
for (var i = 0; i < Help.trials; i++) {
var data = Math.round(Math.random() * 100);
assert.deepEqual(
{},
Help.modbus.ReadExceptionStatus.Request.parse(
Help.modbus.ReadExceptionStatus.Request.build()
)
);
assert.deepEqual(
{ data: data },
Help.modbus.ReadExceptionStatus.Response.parse(
Help.modbus.ReadExceptionStatus.Response.build(data)
)
);
}
});
});