Skip to content

Commit

Permalink
Fixes test folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Jun 23, 2017
1 parent 9b4ede3 commit e3a64a7
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/JavaScript/Source/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const server = net.createServer((client) => {
const keys = extractKeysFromFile(f, callExpressionIdentifiers);
files[f] = keys;
}
write(rpc.id, JSON.stringify(files));
write(rpc.id, JSON.stringify(files, null, 4));
break;
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/TestFramework/ProjectTestRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ void addProjectTests() {

for (auto const &p : paths) {
auto command = read_file(p + "/Command.cmd");
string current_dir = replace_string(p, "/Cases/", "/Current/");
string current_dir = replace_string(p, "/Cases/", "/Currents/");
recursively_create_dir(current_dir);
command = string(PROJECT_DIR) + "/bin/l10ns --rootDir " + current_dir + " " + command;
string result = execute_command(command);
write_file(current_dir + "/Output.txt", result);
string test_name = p.substr(p.find_last_of("/") + 1);
test(test_name, [result, p](Test* t) {
string reference_file = replace_string(p, "/Cases/", "/Reference/");
string reference_file = replace_string(p, "/Cases/", "/References/");
string reference = read_file(reference_file + "/Output.txt");
if (result != reference) {
throw runtime_error("Assertion Error!");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Unknown command flag '--unknown1'.
Unknown command flag '--unknown2'.
You are not inside a L10ns project.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Unknown command flag '--unknown'.
You are not inside a L10ns project.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Unknown command 'unknown1'.
Unknown command 'unknown2'.
You are not inside a L10ns project.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Unknown command 'unknown'.
You are not inside a L10ns project.

0 comments on commit e3a64a7

Please sign in to comment.