Test.run Error message precision when using wrong argument type
1.
const transpile_storage_func = (x: {field: int}): {field: int} => {return x};
const iis2 = Test.run( transpile_storage_func, {property: "toto"});
leads to the error
An internal error ocurred. Please, contact the developers.
Not_found.
which does not provide that much information and should be expected {field: int} but got {property: string}
2.
const transpile_storage_func = (x: {b:int}): {b:int} => {return x};
const iis2 = Test.run( transpile_storage_func2, "toto");
Leads to this error:
File "src/jsligo/test/test.jsligo", line 107, characters 25-59:
Expected string
Which should be expected {b:int} but got string
3.
const transpile_storage_func2 = (x: int): int => {return x};
const iis2 = Test.run( transpile_storage_func2, {field: "toto"});
leads to this
File "src/jsligo/test/test.jsligo", line 107, characters 25-67:
Is it a tuple or a pair?
Which should be expected int but got { field: string}