parent
e55b049025
commit
63b1cfe55d
|
@ -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}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -184,6 +184,8 @@ namespace ln.json
|
|||
JSONArray array = new JSONArray();
|
||||
|
||||
reader.Read();
|
||||
SkipWhitespace(reader);
|
||||
|
||||
while (reader.Peek() != ']')
|
||||
{
|
||||
array.Add(ParseValue(reader));
|
||||
|
|
Loading…
Reference in New Issue