mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-01-25 16:43:02 +00:00
18 lines
615 B
JavaScript
18 lines
615 B
JavaScript
var tape = require("tape");
|
|
|
|
var protobuf = require("..");
|
|
|
|
tape.test("uncommon statements", function(test) {
|
|
test.plan(1);
|
|
protobuf.load("tests/data/uncommon.proto", function(err, root) {
|
|
if (err || !root)
|
|
test.fail(err && err.message || "should parse without errors");
|
|
new protobuf.Root().load("tests/data/uncommon.proto", { keepCase: true }, function(err, root) {
|
|
if (err || !root)
|
|
test.fail(err && err.message || "should parse without errors");
|
|
test.pass("should parse without errors");
|
|
test.end();
|
|
});
|
|
});
|
|
});
|