mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
fix unit test for json encoder
This commit is contained in:
parent
7ac848b23b
commit
b8f0ff836a
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ TEST_CASE("encode_AstStatBlock")
|
|||
AstStatBlock block{Location(), bodyArray};
|
||||
|
||||
CHECK_EQ(
|
||||
(R"({"type":"AstStatBlock","location":"0,0 - 0,0","body":[{"type":"AstStatLocal","location":"0,0 - 0,0","vars":["a_local"],"values":[]}]})"),
|
||||
(R"({"type":"AstStatBlock","location":"0,0 - 0,0","body":[{"type":"AstStatLocal","location":"0,0 - 0,0","vars":[{"type":null,"name":"a_local","location":"0,0 - 0,0"}],"values":[]}]})"),
|
||||
toJson(&block));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue