Skip to content

Commit

Permalink
Merge pull request #50 from leledumbo/master
Browse files Browse the repository at this point in the history
Add Free Pascal fcl-json to parser list
  • Loading branch information
nst committed Oct 31, 2016
2 parents a42b854 + e1e0454 commit c9f84db
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Binary file added parsers/test_fpc/test_json
Binary file not shown.
25 changes: 25 additions & 0 deletions parsers/test_fpc/test_json.pas
@@ -0,0 +1,25 @@
{$mode objfpc}
uses
Classes,SysUtils,fpjson,jsonparser;
var
Input: TStringList;
JSON: TJSONData;
begin
try
try
Input := TStringList.Create;
Input.LoadFromFile(ParamStr(1));
JSON := GetJSON(Input.Text);
finally
JSON.Free;
Input.Free;
end;
except
on e: EParserError do begin
ExitCode := 1;
end;
on e: Exception do begin
ExitCode := 2;
end;
end;
end.
5 changes: 5 additions & 0 deletions run_tests.py
Expand Up @@ -61,6 +61,11 @@
"url":"",
"commands":[os.path.join(PARSERS_DIR, "test_go/test_json")]
},
"Free Pascal fcl-json":
{
"url":"",
"commands":[os.path.join(PARSERS_DIR, "test_fpc/test_json")]
},
"Lua JSON 20160916.19":
{
"url":"http://regex.info/blog/lua/json",
Expand Down

0 comments on commit c9f84db

Please sign in to comment.