Skip to content

Commit e78c451

Browse files
Add tests for new of variables
1 parent 2f44857 commit e78c451

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const QUERY = 'struct:"string"';
2+
3+
const EXPECTED = {
4+
'in_args': [
5+
{ 'path': 'std::string::String', 'name': 'ne' },
6+
],
7+
'returned': [
8+
{ 'path': 'std::string::String', 'name': 'add' },
9+
],
10+
};

src/tools/rustdoc-js-std/tester.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function main(argv) {
263263
finalJS = "";
264264

265265
var arraysToLoad = ["itemTypes"];
266-
var variablesToLoad = ["MAX_LEV_DISTANCE", "MAX_RESULTS",
266+
var variablesToLoad = ["MAX_LEV_DISTANCE", "MAX_RESULTS", "NO_TYPE_FILTER",
267267
"GENERICS_DATA", "NAME", "INPUTS_DATA", "OUTPUT_DATA",
268268
"TY_PRIMITIVE", "TY_KEYWORD",
269269
"levenshtein_row2"];
@@ -336,7 +336,7 @@ function main(argv) {
336336
console.log("OK");
337337
}
338338
});
339-
return errors;
339+
return errors > 0 ? 1 : 0;
340340
}
341341

342342
process.exit(main(process.argv));

0 commit comments

Comments
 (0)