Skip to content

Commit

Permalink
Other: Cleaned up test case data and removed unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jan 16, 2017
1 parent f46ee79 commit b5daa27
Show file tree
Hide file tree
Showing 19 changed files with 207 additions and 604 deletions.
1 change: 0 additions & 1 deletion scripts/gentests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var fs = require("fs"),
"tests/data/package.proto",
"tests/data/rpc.proto",
"tests/data/mapbox/vector_tile.proto",
"tests/data/ambiguous-names.proto",
"tests/data/test.proto",
"tests/data/convert.proto",
"tests/data/comments.proto"
Expand Down
18 changes: 11 additions & 7 deletions tests/ambiguous.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ var tape = require("tape");

var protobuf = require("..");

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

test.pass("should parse without errors");
test.end();
});
tape.test("ambiguous names", function(test) {
protobuf.parse(proto);
test.pass("should parse without errors");
test.end();
});
345 changes: 0 additions & 345 deletions tests/data/ambiguous-names.js

This file was deleted.

9 changes: 0 additions & 9 deletions tests/data/ambiguous-names.proto

This file was deleted.

Loading

0 comments on commit b5daa27

Please sign in to comment.