From 566b76121aa0970b970ed8b18f7f3da5dcea8343 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 5 Dec 2014 22:28:37 +0100 Subject: [PATCH] Fix test of ListConstIterator --- test/JsonArray_Iterator_Tests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/JsonArray_Iterator_Tests.cpp b/test/JsonArray_Iterator_Tests.cpp index d40be0d4..6ccc371d 100644 --- a/test/JsonArray_Iterator_Tests.cpp +++ b/test/JsonArray_Iterator_Tests.cpp @@ -7,7 +7,7 @@ #include #include -template +template static void run_iterator_test() { StaticJsonBuffer<100> jsonBuffer; @@ -15,8 +15,8 @@ static void run_iterator_test() { array.add(12); array.add(34); - typename TArray::iterator it = array.begin(); - typename TArray::iterator end = array.end(); + TIterator it = array.begin(); + TIterator end = array.end(); EXPECT_NE(end, it); EXPECT_EQ(12, it->template as()); @@ -30,9 +30,9 @@ static void run_iterator_test() { } TEST(JsonArray_Iterator_Test, RunItertorToEnd) { - run_iterator_test(); + run_iterator_test(); } TEST(JsonArray_Iterator_Test, RunConstItertorToEnd) { - run_iterator_test(); + run_iterator_test(); }