Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions projects/xUnit/scripts/BasicJsonTestSuite/BasicJsonTestSuite.gml
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,23 @@ function BasicJsonTestSuite() : TestSuite() constructor {

_output = json_parse(_jsonStr);

var _test = {
version: 2,
myArray: "array",
myFunction: "func",
}
if(runtime_gmrt())
{

var _test = {
version: 2,
myArray: "array",
myFunction: "func",
}
}
else {
//In current runtime 2 could be a script index so is_callable returns true
var _test = {
version: "func",
myArray: "array",
myFunction: "func",
}
}

assert_struct_equals(_test, _output, "json_stringify ( struct:local, ..., replacer ), use custom replace funnction (structs are not equal)")
});
Expand Down
Loading