-JsonPath++

This commit is contained in:
James Newton-King
2013-11-30 13:12:30 +13:00
parent 1d9154f32f
commit 847e3e5ac2
2 changed files with 10 additions and 2 deletions
@@ -543,6 +543,16 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
Assert.AreEqual(3, ((ArrayMultipleIndexFilter)path.Filters[0]).Indexes[1]);
}
[Test]
public void MultipleQuotedIndexes()
{
JPath path = new JPath("['111119990','3']");
Assert.AreEqual(1, path.Filters.Count);
Assert.AreEqual(2, ((ArrayMultipleIndexFilter)path.Filters[0]).Indexes.Count);
Assert.AreEqual(111119990, ((ArrayMultipleIndexFilter)path.Filters[0]).Indexes[0]);
Assert.AreEqual(3, ((ArrayMultipleIndexFilter)path.Filters[0]).Indexes[1]);
}
[Test]
public void SlicingIndexAll()
{