Download pool/shard003/JavaScript/0019029_read-exception-status.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019029_read-exception-status.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0019029_read-exception-status.js
-
curl -L -o 0019029_read-exception-status.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019029_read-exception-status.js
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) | |
| ) | |
| ); | |
| } | |
| }); | |
| }); | |