wildfire chat server source initial submit
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
var tape = require("tape");
|
||||
|
||||
var protobuf = require("..");
|
||||
|
||||
var proto = "syntax = \"proto3\";\
|
||||
message A {\
|
||||
message B {\
|
||||
message One {\
|
||||
extensions 1000 to max;\
|
||||
reserved 900 to 999, 899, \"a\", 'b';\
|
||||
}\
|
||||
}\
|
||||
message C {\
|
||||
message Two {\
|
||||
extend B.One {\
|
||||
C.Two two = 1000;\
|
||||
}\
|
||||
}\
|
||||
}\
|
||||
}";
|
||||
|
||||
tape.test("extensions", function(test) {
|
||||
var root = protobuf.parse(proto).root;
|
||||
root.resolveAll();
|
||||
test.pass("should parse and resolve without errors");
|
||||
test.end();
|
||||
});
|
||||
Reference in New Issue
Block a user