diff --git a/test/testMisc.m b/test/testMisc.m index 2908af6..529e5d2 100644 --- a/test/testMisc.m +++ b/test/testMisc.m @@ -58,3 +58,9 @@ [obj, errors] = JSON.parse(sprintf('"foo\tbar"')); assert(strcmp(errors{1}{2}, 'Invalid char found in range #00-#1F at line 1, column 5')); + +uriPrefix = ['file:///' strrep(pwd, '\', '/') '/test/']; + +[obj, errors] = JSON.parse([uriPrefix 'issue6/request.json'], [uriPrefix 'issue6/request_schema.json']); +assert(isempty(errors)); +assert(isa(obj.start, 'datetime'));