Fixes #1
ln.build - build0.waldrennach.l--n.de build job pending Details

master
Harald Wolff 2020-12-09 14:49:30 +01:00
parent e55b049025
commit 63b1cfe55d
2 changed files with 19 additions and 0 deletions

View File

@ -25,5 +25,22 @@ namespace ln.json.tests
Assert.Pass();
}
[Test]
public void TestArrayParser()
{
JSONParser.Parse("[]");
JSONParser.Parse("[ ]");
JSONParser.Parse("[\t]");
}
[Test]
public void TestObjectParser()
{
JSONParser.Parse("{}");
JSONParser.Parse("{ }");
JSONParser.Parse("{\t}");
}
}
}

View File

@ -184,6 +184,8 @@ namespace ln.json
JSONArray array = new JSONArray();
reader.Read();
SkipWhitespace(reader);
while (reader.Peek() != ']')
{
array.Add(ParseValue(reader));