Merge pull request #5118 from xackus/fix-json-writestream
fix json.WriteStream.emitJson
This commit is contained in:
@@ -2194,7 +2194,7 @@ test "write json then parse it" {
|
||||
try jw.emitBool(true);
|
||||
|
||||
try jw.objectField("int");
|
||||
try jw.emitNumber(@as(i32, 1234));
|
||||
try jw.emitNumber(1234);
|
||||
|
||||
try jw.objectField("array");
|
||||
try jw.beginArray();
|
||||
@@ -2203,7 +2203,7 @@ test "write json then parse it" {
|
||||
try jw.emitNull();
|
||||
|
||||
try jw.arrayElem();
|
||||
try jw.emitNumber(@as(f64, 12.34));
|
||||
try jw.emitNumber(12.34);
|
||||
|
||||
try jw.endArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user