mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-02-01 17:21:20 +00:00
18 lines
304 B
JavaScript
18 lines
304 B
JavaScript
var tape = require("tape");
|
|
|
|
var protobuf = require("..");
|
|
|
|
var proto = "syntax = \"proto3\";\
|
|
message A {\
|
|
string whatever = 1;\
|
|
}\
|
|
message B {\
|
|
A A = 1;\
|
|
}";
|
|
|
|
tape.test("ambiguous names", function(test) {
|
|
protobuf.parse(proto);
|
|
test.pass("should parse without errors");
|
|
test.end();
|
|
});
|