From 847e3e5ac2a5f4e53bbec169396aa0f07acc0b05 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 30 Nov 2013 13:12:30 +1300 Subject: [PATCH] -JsonPath++ --- .../Linq/JsonPath/JPathParseTests.cs | 10 ++++++++++ Src/Newtonsoft.Json/Newtonsoft.Json.csproj | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathParseTests.cs b/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathParseTests.cs index 877b5a6f..c508c061 100644 --- a/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathParseTests.cs +++ b/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathParseTests.cs @@ -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() { diff --git a/Src/Newtonsoft.Json/Newtonsoft.Json.csproj b/Src/Newtonsoft.Json/Newtonsoft.Json.csproj index f6c11f07..f08cb031 100644 --- a/Src/Newtonsoft.Json/Newtonsoft.Json.csproj +++ b/Src/Newtonsoft.Json/Newtonsoft.Json.csproj @@ -111,7 +111,6 @@ - @@ -121,7 +120,6 @@ -