Skip to content

Commit b5daa27

Browse files
committed
Other: Cleaned up test case data and removed unused files
1 parent f46ee79 commit b5daa27

19 files changed

+207
-604
lines changed

scripts/gentests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var fs = require("fs"),
88
"tests/data/package.proto",
99
"tests/data/rpc.proto",
1010
"tests/data/mapbox/vector_tile.proto",
11-
"tests/data/ambiguous-names.proto",
1211
"tests/data/test.proto",
1312
"tests/data/convert.proto",
1413
"tests/data/comments.proto"

tests/ambiguous.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ var tape = require("tape");
22

33
var protobuf = require("..");
44

5-
tape.test("ambiguous names", function(test) {
6-
protobuf.load("tests/data/ambiguous-names.proto", function(err, root) {
7-
if (err)
8-
return test.fail(err.message);
5+
var proto = "syntax = \"proto3\";\
6+
message A {\
7+
string whatever = 1;\
8+
}\
9+
message B {\
10+
A A = 1;\
11+
}";
912

10-
test.pass("should parse without errors");
11-
test.end();
12-
});
13+
tape.test("ambiguous names", function(test) {
14+
protobuf.parse(proto);
15+
test.pass("should parse without errors");
16+
test.end();
1317
});

tests/data/ambiguous-names.js

Lines changed: 0 additions & 345 deletions
This file was deleted.

tests/data/ambiguous-names.proto

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)