Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
boolinq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
boolinq
Commits
d36208eb
Commit
d36208eb
authored
Jun 29, 2019
by
Anton Bukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename some tests and files
parent
7d8da6a0
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
127 additions
and
147 deletions
+127
-147
BitsTest.cpp
test/BitsTest.cpp
+9
-9
BytesTest.cpp
test/BytesTest.cpp
+9
-9
CMakeLists.txt
test/CMakeLists.txt
+20
-20
ConcatTest.cpp
test/ConcatTest.cpp
+3
-3
CtorTest.cpp
test/CtorTest.cpp
+9
-9
DistinctTest.cpp
test/DistinctTest.cpp
+5
-5
GroupByTest.cpp
test/GroupByTest.cpp
+2
-2
LinqTest.cpp
test/LinqTest.cpp
+1
-1
OrderByTest.cpp
test/OrderByTest.cpp
+7
-7
ReverseTest.cpp
test/ReverseTest.cpp
+2
-2
SelectTest.cpp
test/SelectTest.cpp
+3
-3
SkipTest.cpp
test/SkipTest.cpp
+10
-10
SkipWhileTest.cpp
test/SkipWhileTest.cpp
+8
-8
TakeTest.cpp
test/TakeTest.cpp
+9
-9
TakeWhileTest.cpp
test/TakeWhileTest.cpp
+8
-8
ToStdDequeTest.cpp
test/ToStdDequeTest.cpp
+1
-1
ToStdListTest.cpp
test/ToStdListTest.cpp
+1
-1
ToStdSetTest.cpp
test/ToStdSetTest.cpp
+1
-1
ToStdVectorTest.cpp
test/ToStdVectorTest.cpp
+1
-1
UnbitsTest.cpp
test/UnbitsTest.cpp
+3
-3
UnbytesTest.cpp
test/UnbytesTest.cpp
+7
-7
WhereTest.cpp
test/WhereTest.cpp
+8
-8
main.cpp
test/main.cpp
+0
-20
No files found.
test/Bits
Range
Test.cpp
→
test/BitsTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Bits
Range
,
OneByteDefault
)
TEST
(
Bits
,
OneByteDefault
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
};
...
...
@@ -21,7 +21,7 @@ TEST(BitsRange, OneByteDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
OneByteHL
)
TEST
(
Bits
,
OneByteHL
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
};
...
...
@@ -32,7 +32,7 @@ TEST(BitsRange, OneByteHL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
OneByteLH
)
TEST
(
Bits
,
OneByteLH
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
};
...
...
@@ -45,7 +45,7 @@ TEST(BitsRange, OneByteLH)
//////////////////////////////////////////////////////////////////////////
TEST
(
Bits
Range
,
OneIntDefault
)
TEST
(
Bits
,
OneIntDefault
)
{
unsigned
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
...
...
@@ -62,7 +62,7 @@ TEST(BitsRange, OneIntDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
OneIntHL
)
TEST
(
Bits
,
OneIntHL
)
{
unsigned
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
...
...
@@ -79,7 +79,7 @@ TEST(BitsRange, OneIntHL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
OneIntLH
)
TEST
(
Bits
,
OneIntLH
)
{
unsigned
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
...
...
@@ -99,7 +99,7 @@ TEST(BitsRange, OneIntLH)
//////////////////////////////////////////////////////////////////////////
TEST
(
Bits
Range
,
IntsDefault
)
TEST
(
Bits
,
IntsDefault
)
{
unsigned
int
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
@@ -121,7 +121,7 @@ TEST(BitsRange, IntsDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
IntsHL
)
TEST
(
Bits
,
IntsHL
)
{
unsigned
int
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
@@ -143,7 +143,7 @@ TEST(BitsRange, IntsHL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bits
Range
,
IntsLH
)
TEST
(
Bits
,
IntsLH
)
{
unsigned
int
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
test/Bytes
Range
Test.cpp
→
test/BytesTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Bytes
Range
,
OneByteDefault
)
TEST
(
Bytes
,
OneByteDefault
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
0xAA
};
...
...
@@ -21,7 +21,7 @@ TEST(BytesRange, OneByteDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
OneByteFL
)
TEST
(
Bytes
,
OneByteFL
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
0xAA
};
...
...
@@ -32,7 +32,7 @@ TEST(BytesRange, OneByteFL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
OneByteLF
)
TEST
(
Bytes
,
OneByteLF
)
{
unsigned
char
src
[]
=
{
0xAA
};
int
ans
[]
=
{
0xAA
};
...
...
@@ -45,7 +45,7 @@ TEST(BytesRange, OneByteLF)
//////////////////////////////////////////////////////////////////////////
TEST
(
Bytes
Range
,
OneIntDefault
)
TEST
(
Bytes
,
OneIntDefault
)
{
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
{
0x78
,
0x56
,
0x34
,
0x12
};
...
...
@@ -56,7 +56,7 @@ TEST(BytesRange, OneIntDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
OneIntFL
)
TEST
(
Bytes
,
OneIntFL
)
{
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
{
0x78
,
0x56
,
0x34
,
0x12
};
...
...
@@ -67,7 +67,7 @@ TEST(BytesRange, OneIntFL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
OneIntLF
)
TEST
(
Bytes
,
OneIntLF
)
{
int
src
[]
=
{
0x12345678
};
int
ans
[]
=
{
0x12
,
0x34
,
0x56
,
0x78
};
...
...
@@ -80,7 +80,7 @@ TEST(BytesRange, OneIntLF)
//////////////////////////////////////////////////////////////////////////
TEST
(
Bytes
Range
,
IntsDefault
)
TEST
(
Bytes
,
IntsDefault
)
{
unsigned
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
@@ -95,7 +95,7 @@ TEST(BytesRange, IntsDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
IntsFL
)
TEST
(
Bytes
,
IntsFL
)
{
unsigned
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
@@ -110,7 +110,7 @@ TEST(BytesRange, IntsFL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Bytes
Range
,
IntsLF
)
TEST
(
Bytes
,
IntsLF
)
{
unsigned
src
[]
=
{
0x12345678
,
0xAABBCCDD
};
int
ans
[]
=
...
...
test/CMakeLists.txt
View file @
d36208eb
...
...
@@ -23,35 +23,35 @@ SET (
${
PROJECT_SOURCE_DIR
}
/test/AllTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/AnyTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/AvgTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/Bits
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Bytes
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Concat
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/BitsTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/BytesTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ConcatTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ContainsTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/CountTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/Distinct
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/DistinctTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/DotCallTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ElementAtTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/For
e
achTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/For
E
achTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/GroupByTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/
IterRange
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/
Ctor
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/LinqTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/MaxTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/MinTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/OrderBy
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Reverse
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Select
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Skip
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/SkipWhile
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/OrderByTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ReverseTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/SelectTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/SkipTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/SkipWhileTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/SumTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/Take
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/TakeWhile
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/ToDequeTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ToListTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ToSetTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ToVectorTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/Unbits
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Unbytes
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/Where
Range
Test.cpp
${
PROJECT_SOURCE_DIR
}
/test/TakeTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/TakeWhileTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/To
Std
DequeTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/To
Std
ListTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/ToS
tdS
etTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/To
Std
VectorTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/UnbitsTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/UnbytesTest.cpp
${
PROJECT_SOURCE_DIR
}
/test/WhereTest.cpp
)
ADD_EXECUTABLE
(
boolinqtest
...
...
test/Concat
Range
Test.cpp
→
test/ConcatTest.cpp
View file @
d36208eb
...
...
@@ -5,7 +5,7 @@
using
namespace
boolinq
;
TEST
(
Concat
Range
,
ArrayArray
)
TEST
(
Concat
,
ArrayArray
)
{
int
src1
[]
=
{
1
,
2
,
3
,
4
,
5
};
int
src2
[]
=
{
6
,
7
,
8
,
9
};
...
...
@@ -19,7 +19,7 @@ TEST(ConcatRange, ArrayArray)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Concat
Range
,
ArrayVector
)
TEST
(
Concat
,
ArrayVector
)
{
int
src1
[]
=
{
1
,
2
,
3
,
4
,
5
};
std
::
vector
<
int
>
src2
;
...
...
@@ -37,7 +37,7 @@ TEST(ConcatRange, ArrayVector)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Concat
Range
,
ArrayVectorArray
)
TEST
(
Concat
,
ArrayVectorArray
)
{
int
src1
[]
=
{
1
,
2
,
3
,
4
,
5
};
std
::
vector
<
int
>
src2
;
...
...
test/
IterRange
Test.cpp
→
test/
Ctor
Test.cpp
View file @
d36208eb
...
...
@@ -15,7 +15,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
IterRange
,
ListInt
)
TEST
(
Ctor
,
ListInt
)
{
std
::
list
<
int
>
lst
;
lst
.
push_back
(
1
);
...
...
@@ -31,7 +31,7 @@ TEST(IterRange, ListInt)
CheckRangeEqArray
(
from
(
lst
.
cbegin
(),
lst
.
cend
()),
ans
);
}
TEST
(
IterRange
,
DequeInt
)
TEST
(
Ctor
,
DequeInt
)
{
std
::
deque
<
int
>
dck
;
dck
.
push_back
(
1
);
...
...
@@ -47,7 +47,7 @@ TEST(IterRange, DequeInt)
CheckRangeEqArray
(
from
(
dck
.
cbegin
(),
dck
.
cend
()),
ans
);
}
TEST
(
IterRange
,
VectorInt
)
TEST
(
Ctor
,
VectorInt
)
{
std
::
vector
<
int
>
vec
;
vec
.
push_back
(
1
);
...
...
@@ -63,7 +63,7 @@ TEST(IterRange, VectorInt)
CheckRangeEqArray
(
from
(
vec
.
cbegin
(),
vec
.
cend
()),
ans
);
}
TEST
(
IterRange
,
SetInt
)
TEST
(
Ctor
,
SetInt
)
{
std
::
set
<
int
>
set
=
{
1
,
2
,
3
,
4
,
5
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
};
...
...
@@ -73,7 +73,7 @@ TEST(IterRange, SetInt)
CheckRangeEqSet
(
from
(
set
.
cbegin
(),
set
.
cend
()),
ans
);
}
//TEST(
IterRange
, MapInt)
//TEST(
Ctor
, MapInt)
//{
// std::map<int, int> map = {{5,1},{4,2},{3,3},{2,4},{1,5}};
// std::pair<int, int> ans[] = {{5,1},{4,2},{3,3},{2,4},{1,5}};
...
...
@@ -86,7 +86,7 @@ TEST(IterRange, SetInt)
// .orderBy([](std::pair<int,int> p){ return p.second; }), ans);
//}
TEST
(
IterRange
,
StdArrayInt
)
TEST
(
Ctor
,
StdArrayInt
)
{
std
::
array
<
int
,
5
>
arr
=
{
{
1
,
2
,
3
,
4
,
5
}
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
};
...
...
@@ -96,7 +96,7 @@ TEST(IterRange, StdArrayInt)
CheckRangeEqArray
(
from
(
arr
.
cbegin
(),
arr
.
cend
()),
ans
);
}
TEST
(
IterRange
,
ArrayInt
)
TEST
(
Ctor
,
ArrayInt
)
{
int
arr
[]
=
{
1
,
2
,
3
,
4
,
5
};
int
*
ptr
=
static_cast
<
int
*>
(
arr
);
...
...
@@ -110,7 +110,7 @@ TEST(IterRange, ArrayInt)
//////////////////////////////////////////////////////////////////////////
TEST
(
IterRange
,
OneElement
)
TEST
(
Ctor
,
OneElement
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -120,7 +120,7 @@ TEST(IterRange, OneElement)
CheckRangeEqArray
(
rng
,
ans
);
}
TEST
(
IterRange
,
EmptyVector
)
TEST
(
Ctor
,
EmptyVector
)
{
std
::
vector
<
int
>
src
;
...
...
test/Distinct
Range
Test.cpp
→
test/DistinctTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Distinct
Range
,
Ints1to6
)
TEST
(
Distinct
,
Ints1to6
)
{
int
src
[]
=
{
4
,
5
,
3
,
1
,
4
,
2
,
1
,
4
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -21,7 +21,7 @@ TEST(DistinctRange, Ints1to6)
CheckRangeEqSet
(
dst
,
ans
);
}
TEST
(
Distinct
Range
,
IntMirrorFront
)
TEST
(
Distinct
,
IntMirrorFront
)
{
int
src
[]
=
{
3
,
2
,
1
,
0
,
1
,
2
,
3
};
int
ans
[]
=
{
0
,
1
,
2
,
3
};
...
...
@@ -32,7 +32,7 @@ TEST(DistinctRange, IntMirrorFront)
CheckRangeEqSet
(
dst
,
ans
);
}
TEST
(
Distinct
Range
,
ManyEqualsFront
)
TEST
(
Distinct
,
ManyEqualsFront
)
{
int
src
[]
=
{
1
,
1
,
1
,
1
};
int
ans
[]
=
{
1
};
...
...
@@ -43,7 +43,7 @@ TEST(DistinctRange, ManyEqualsFront)
CheckRangeEqSet
(
dst
,
ans
);
}
TEST
(
Distinct
Range
,
ManyEqualsWithOneFront
)
TEST
(
Distinct
,
ManyEqualsWithOneFront
)
{
int
src
[]
=
{
1
,
1
,
2
,
1
};
int
ans
[]
=
{
1
,
2
};
...
...
@@ -54,7 +54,7 @@ TEST(DistinctRange, ManyEqualsWithOneFront)
CheckRangeEqSet
(
dst
,
ans
);
}
TEST
(
Distinct
Range
,
OneFieldFront
)
TEST
(
Distinct
,
OneFieldFront
)
{
struct
Man
{
...
...
test/GroupByTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
GroupBy
Range
,
Ints
)
TEST
(
GroupBy
,
Ints
)
{
int
arr
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
...
...
@@ -32,7 +32,7 @@ TEST(GroupByRange, Ints)
//////////////////////////////////////////////////////////////////////////
TEST
(
GroupBy
Range
,
CountChildrenByAge
)
TEST
(
GroupBy
,
CountChildrenByAge
)
{
struct
Child
{
...
...
test/LinqTest.cpp
View file @
d36208eb
...
...
@@ -246,7 +246,7 @@ TEST(Linq, Creations)
vec
.
push_back
(
4
);
vec
.
push_back
(
5
);
int
arr
[]
=
{
1
,
2
,
3
,
4
,
5
};
//const int carr[] = {1,2,3,4,5};
//
const int carr[] = {1,2,3,4,5};
int
*
ptr
=
static_cast
<
int
*>
(
arr
);
//const int * cptr = const_cast<int *>(arr);
...
...
test/OrderBy
Range
Test.cpp
→
test/OrderByTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
OrderBy
Range
,
RandomIntsWithDuplicates
)
TEST
(
OrderBy
,
RandomIntsWithDuplicates
)
{
int
src
[]
=
{
4
,
5
,
3
,
1
,
4
,
2
,
1
,
4
,
6
};
int
ans
[]
=
{
1
,
1
,
2
,
3
,
4
,
4
,
4
,
5
,
6
};
...
...
@@ -21,7 +21,7 @@ TEST(OrderByRange, RandomIntsWithDuplicates)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
OrderBy
Range
,
ReverseInts
)
TEST
(
OrderBy
,
ReverseInts
)
{
int
src
[]
=
{
4
,
3
,
2
,
1
};
int
ans
[]
=
{
1
,
2
,
3
,
4
};
...
...
@@ -32,7 +32,7 @@ TEST(OrderByRange, ReverseInts)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
OrderBy
Range
,
ThreeElements
)
TEST
(
OrderBy
,
ThreeElements
)
{
int
src
[]
=
{
1
,
3
,
2
};
int
ans
[]
=
{
1
,
2
,
3
};
...
...
@@ -45,7 +45,7 @@ TEST(OrderByRange, ThreeElements)
//////////////////////////////////////////////////////////////////////////
TEST
(
OrderBy
Range
,
OneElement
)
TEST
(
OrderBy
,
OneElement
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -56,7 +56,7 @@ TEST(OrderByRange, OneElement)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
OrderBy
Range
,
NoElements
)
TEST
(
OrderBy
,
NoElements
)
{
std
::
vector
<
int
>
src
;
...
...
@@ -68,7 +68,7 @@ TEST(OrderByRange, NoElements)
//////////////////////////////////////////////////////////////////////////
TEST
(
OrderBy
Range
,
RandomStringByContent
)
TEST
(
OrderBy
,
RandomStringByContent
)
{
std
::
string
src
[]
=
{
...
...
@@ -96,7 +96,7 @@ TEST(OrderByRange, RandomStringByContent)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
OrderBy
Range
,
RandomStringByLength
)
TEST
(
OrderBy
,
RandomStringByLength
)
{
std
::
string
src
[]
=
{
...
...
test/Reverse
Range
Test.cpp
→
test/ReverseTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@
using
namespace
boolinq
;
TEST
(
Reverse
Range
,
IntVector
)
TEST
(
Reverse
,
IntVector
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
};
int
ans
[]
=
{
4
,
3
,
2
,
1
};
...
...
@@ -21,7 +21,7 @@ TEST(ReverseRange, IntVector)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Reverse
Range
,
DoubleReverse
)
TEST
(
Reverse
,
DoubleReverse
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
};
int
ans
[]
=
{
1
,
2
,
3
,
4
};
...
...
test/Select
Range
Test.cpp
→
test/SelectTest.cpp
View file @
d36208eb
...
...
@@ -8,7 +8,7 @@
using
namespace
boolinq
;
TEST
(
Select
Range
,
Mul2
)
TEST
(
Select
,
Mul2
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
};
int
ans
[]
=
{
2
,
4
,
6
,
8
};
...
...
@@ -19,7 +19,7 @@ TEST(SelectRange, Mul2)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Select
Range
,
MakeChar
)
TEST
(
Select
,
MakeChar
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
};
char
ans
[]
=
{
'1'
,
'2'
,
'3'
,
'4'
};
...
...
@@ -30,7 +30,7 @@ TEST(SelectRange, MakeChar)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Select
Range
,
MakeString
)
TEST
(
Select
,
MakeString
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
};
...
...
test/Skip
Range
Test.cpp
→
test/SkipTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Skip
Range
,
ManyToMany
)
TEST
(
Skip
,
ManyToMany
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -21,7 +21,7 @@ TEST(SkipRange, ManyToMany)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Skip
Range
,
ManyToLess
)
TEST
(
Skip
,
ManyToLess
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
4
,
5
,
6
};
...
...
@@ -32,7 +32,7 @@ TEST(SkipRange, ManyToLess)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Skip
Range
,
ManyToOne
)
TEST
(
Skip
,
ManyToOne
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
6
};
...
...
@@ -43,7 +43,7 @@ TEST(SkipRange, ManyToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Skip
Range
,
ManyToZero
)
TEST
(
Skip
,
ManyToZero
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -53,7 +53,7 @@ TEST(SkipRange, ManyToZero)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Skip
Range
,
ManyToZeroLess
)
TEST
(
Skip
,
ManyToZeroLess
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -65,7 +65,7 @@ TEST(SkipRange, ManyToZeroLess)
//////////////////////////////////////////////////////////////////////////
TEST
(
Skip
Range
,
OneToOne
)
TEST
(
Skip
,
OneToOne
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -76,7 +76,7 @@ TEST(SkipRange, OneToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Skip
Range
,
OneToZero
)
TEST
(
Skip
,
OneToZero
)
{
int
src
[]
=
{
5
};
...
...
@@ -86,7 +86,7 @@ TEST(SkipRange, OneToZero)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Skip
Range
,
OneToZeroLess
)
TEST
(
Skip
,
OneToZeroLess
)
{
int
src
[]
=
{
5
};
...
...
@@ -96,7 +96,7 @@ TEST(SkipRange, OneToZeroLess)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Skip
Range
,
ZeroToZero
)
TEST
(
Skip
,
ZeroToZero
)
{
std
::
vector
<
int
>
src
;
...
...
@@ -106,7 +106,7 @@ TEST(SkipRange, ZeroToZero)
EXPECT_THROW
(
rng
.
next
(),
LinqEndException
);
}
TEST
(
Skip
Range
,
ZeroToZeroLess
)
TEST
(
Skip
,
ZeroToZeroLess
)
{
std
::
vector
<
int
>
src
;
...
...
test/SkipWhile
Range
Test.cpp
→
test/SkipWhileTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
SkipWhile
Range
,
ManyToMore
)
TEST
(
SkipWhile
,
ManyToMore
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -54,7 +54,7 @@ TEST(SkipWhileRange_i, ManyToMoreByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
SkipWhile
Range
,
ManyToMany
)
TEST
(
SkipWhile
,
ManyToMany
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -99,7 +99,7 @@ TEST(SkipWhileRange_i, ManyToManyByIndexAndItemValue)
}
TEST
(
SkipWhile
Range
,
ManyToLess
)
TEST
(
SkipWhile
,
ManyToLess
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
3
,
4
,
5
,
6
};
...
...
@@ -143,7 +143,7 @@ TEST(SkipWhileRange_i, ManyToLessByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
SkipWhile
Range
,
ManyToOne
)
TEST
(
SkipWhile
,
ManyToOne
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
6
};
...
...
@@ -187,7 +187,7 @@ TEST(SkipWhileRange_i, ManyToOneByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
SkipWhile
Range
,
ManyToZero
)
TEST
(
SkipWhile
,
ManyToZero
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -229,7 +229,7 @@ TEST(SkipWhileRange_i, ManyToZeroIndexAndItemValue)
//////////////////////////////////////////////////////////////////////////
TEST
(
SkipWhile
Range
,
OneToOne
)
TEST
(
SkipWhile
,
OneToOne
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -273,7 +273,7 @@ TEST(SkipWhileRange_i, OneToOneByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
SkipWhile
Range
,
OneToZero
)
TEST
(
SkipWhile
,
OneToZero
)
{
int
src
[]
=
{
5
};
...
...
@@ -313,7 +313,7 @@ TEST(SkipWhileRange_i, OneToZeroIndexAndItemValue)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
SkipWhile
Range
,
ZeroToZero
)
TEST
(
SkipWhile
,
ZeroToZero
)
{
std
::
vector
<
int
>
src
;
...
...
test/Take
Range
Test.cpp
→
test/TakeTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Take
Range
,
ManyToMore
)
TEST
(
Take
,
ManyToMore
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -21,7 +21,7 @@ TEST(TakeRange, ManyToMore)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
ManyToMany
)
TEST
(
Take
,
ManyToMany
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -32,7 +32,7 @@ TEST(TakeRange, ManyToMany)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
ManyToLess
)
TEST
(
Take
,
ManyToLess
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
};
...
...
@@ -43,7 +43,7 @@ TEST(TakeRange, ManyToLess)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
ManyToOne
)
TEST
(
Take
,
ManyToOne
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
};
...
...
@@ -54,7 +54,7 @@ TEST(TakeRange, ManyToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
ManyToZero
)
TEST
(
Take
,
ManyToZero
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -66,7 +66,7 @@ TEST(TakeRange, ManyToZero)
//////////////////////////////////////////////////////////////////////////
TEST
(
Take
Range
,
OneToMore
)
TEST
(
Take
,
OneToMore
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -77,7 +77,7 @@ TEST(TakeRange, OneToMore)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
OneToOne
)
TEST
(
Take
,
OneToOne
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -88,7 +88,7 @@ TEST(TakeRange, OneToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Take
Range
,
OneToZero
)
TEST
(
Take
,
OneToZero
)
{
int
src
[]
=
{
5
};
...
...
@@ -98,7 +98,7 @@ TEST(TakeRange, OneToZero)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Take
Range
,
ZeroToZero
)
TEST
(
Take
,
ZeroToZero
)
{
std
::
vector
<
int
>
src
;
...
...
test/TakeWhile
Range
Test.cpp
→
test/TakeWhileTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
TakeWhile
Range
,
ManyToMore
)
TEST
(
TakeWhile
,
ManyToMore
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -54,7 +54,7 @@ TEST(TakeWhileRange_i, ManyToMoreByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
TakeWhile
Range
,
ManyToMany
)
TEST
(
TakeWhile
,
ManyToMany
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -98,7 +98,7 @@ TEST(TakeWhileRange_i, ManyToManyByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
TakeWhile
Range
,
ManyToLess
)
TEST
(
TakeWhile
,
ManyToLess
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
2
,
3
};
...
...
@@ -142,7 +142,7 @@ TEST(TakeWhileRange_i, ManyToLessByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
TakeWhile
Range
,
ManyToOne
)
TEST
(
TakeWhile
,
ManyToOne
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
};
...
...
@@ -186,7 +186,7 @@ TEST(TakeWhileRange_i, ManyToOneByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
TakeWhile
Range
,
ManyToZero
)
TEST
(
TakeWhile
,
ManyToZero
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
...
...
@@ -228,7 +228,7 @@ TEST(TakeWhileRange_i, ManyToZeroByIdexAndItemValue)
//////////////////////////////////////////////////////////////////////////
TEST
(
TakeWhile
Range
,
OneToOne
)
TEST
(
TakeWhile
,
OneToOne
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -272,7 +272,7 @@ TEST(TakeWhileRange_i, OneToOneByIndexAndItemValue)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
TakeWhile
Range
,
OneToZero
)
TEST
(
TakeWhile
,
OneToZero
)
{
int
src
[]
=
{
5
};
...
...
@@ -312,7 +312,7 @@ TEST(TakeWhileRange_i, OneToZeroByIndexAndItemValue)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
TakeWhile
Range
,
ZeroToZero
)
TEST
(
TakeWhile
,
ZeroToZero
)
{
std
::
vector
<
int
>
src
;
...
...
test/ToDequeTest.cpp
→
test/To
Std
DequeTest.cpp
View file @
d36208eb
...
...
@@ -6,7 +6,7 @@
using
namespace
boolinq
;
TEST
(
t
oStdDeque
,
Deque2Deque
)
TEST
(
T
oStdDeque
,
Deque2Deque
)
{
std
::
deque
<
int
>
src
;
src
.
push_back
(
100
);
...
...
test/ToListTest.cpp
→
test/To
Std
ListTest.cpp
View file @
d36208eb
...
...
@@ -6,7 +6,7 @@
using
namespace
boolinq
;
TEST
(
t
oStdList
,
List2List
)
TEST
(
T
oStdList
,
List2List
)
{
std
::
list
<
int
>
src
;
src
.
push_back
(
100
);
...
...
test/ToSetTest.cpp
→
test/ToS
tdS
etTest.cpp
View file @
d36208eb
...
...
@@ -6,7 +6,7 @@
using
namespace
boolinq
;
TEST
(
t
oStdSet
,
Vector2Set
)
TEST
(
T
oStdSet
,
Vector2Set
)
{
std
::
vector
<
int
>
src
;
src
.
push_back
(
1
);
...
...
test/ToVectorTest.cpp
→
test/To
Std
VectorTest.cpp
View file @
d36208eb
...
...
@@ -6,7 +6,7 @@
using
namespace
boolinq
;
TEST
(
t
oStdVector
,
Vector2Vector
)
TEST
(
T
oStdVector
,
Vector2Vector
)
{
std
::
vector
<
int
>
src
;
src
.
push_back
(
100
);
...
...
test/Unbits
Range
Test.cpp
→
test/UnbitsTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Unbits
Range
,
OneByteDefault
)
TEST
(
Unbits
,
OneByteDefault
)
{
int
src
[]
=
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
};
int
ans
[]
=
{
0xAA
};
...
...
@@ -21,7 +21,7 @@ TEST(UnbitsRange, OneByteDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbits
Range
,
OneByteHL
)
TEST
(
Unbits
,
OneByteHL
)
{
int
src
[]
=
{
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
};
int
ans
[]
=
{
0xAA
};
...
...
@@ -32,7 +32,7 @@ TEST(UnbitsRange, OneByteHL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbits
Range
,
OneByteLH
)
TEST
(
Unbits
,
OneByteLH
)
{
int
src
[]
=
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
};
int
ans
[]
=
{
0xAA
};
...
...
test/Unbytes
Range
Test.cpp
→
test/UnbytesTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Unbytes
Range
,
OneIntDefault
)
TEST
(
Unbytes
,
OneIntDefault
)
{
unsigned
char
src
[]
=
{
0xAA
,
0xBB
,
0xCC
,
0xDD
};
unsigned
ans
[]
=
{
0xDDCCBBAA
};
...
...
@@ -21,7 +21,7 @@ TEST(UnbytesRange, OneIntDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbytes
Range
,
OneIntFL
)
TEST
(
Unbytes
,
OneIntFL
)
{
unsigned
char
src
[]
=
{
0xAA
,
0xBB
,
0xCC
,
0xDD
};
unsigned
ans
[]
=
{
0xDDCCBBAA
};
...
...
@@ -32,7 +32,7 @@ TEST(UnbytesRange, OneIntFL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbytes
Range
,
OneIntLF
)
TEST
(
Unbytes
,
OneIntLF
)
{
unsigned
char
src
[]
=
{
0xAA
,
0xBB
,
0xCC
,
0xDD
};
unsigned
ans
[]
=
{
0xAABBCCDD
};
...
...
@@ -45,7 +45,7 @@ TEST(UnbytesRange, OneIntLF)
//////////////////////////////////////////////////////////////////////////
TEST
(
Unbytes
Range
,
TwoIntsDefault
)
TEST
(
Unbytes
,
TwoIntsDefault
)
{
unsigned
char
src
[]
=
{
...
...
@@ -60,7 +60,7 @@ TEST(UnbytesRange, TwoIntsDefault)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbytes
Range
,
TwoIntsFL
)
TEST
(
Unbytes
,
TwoIntsFL
)
{
unsigned
char
src
[]
=
{
...
...
@@ -75,7 +75,7 @@ TEST(UnbytesRange, TwoIntsFL)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Unbytes
Range
,
TwoIntsLF
)
TEST
(
Unbytes
,
TwoIntsLF
)
{
unsigned
char
src
[]
=
{
...
...
@@ -92,7 +92,7 @@ TEST(UnbytesRange, TwoIntsLF)
//////////////////////////////////////////////////////////////////////////
TEST
(
Unbytes
Range
,
EmptyDefault
)
TEST
(
Unbytes
,
EmptyDefault
)
{
std
::
vector
<
unsigned
char
>
src
;
...
...
test/Where
Range
Test.cpp
→
test/WhereTest.cpp
View file @
d36208eb
...
...
@@ -10,7 +10,7 @@ using namespace boolinq;
//////////////////////////////////////////////////////////////////////////
TEST
(
Where
Range
,
IntOdd
)
TEST
(
Where
,
IntOdd
)
{
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
};
int
ans
[]
=
{
1
,
3
,
5
};
...
...
@@ -23,7 +23,7 @@ TEST(WhereRange, IntOdd)
//////////////////////////////////////////////////////////////////////////
TEST
(
Where
Range
,
FirstLetterFront
)
TEST
(
Where
,
FirstLetterFront
)
{
std
::
string
src
[]
=
{
...
...
@@ -48,7 +48,7 @@ TEST(WhereRange, FirstLetterFront)
//////////////////////////////////////////////////////////////////////////
TEST
(
Where
Range
,
NameAgeLess
)
TEST
(
Where
,
NameAgeLess
)
{
struct
NameAge
{
...
...
@@ -79,7 +79,7 @@ TEST(WhereRange, NameAgeLess)
////////////////////////////////////////////////////////////////////////
TEST
(
Where
Range
,
MayToOne
)
TEST
(
Where
,
MayToOne
)
{
int
src
[]
=
{
0
,
1
,
2
};
int
ans
[]
=
{
1
};
...
...
@@ -90,7 +90,7 @@ TEST(WhereRange, MayToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Where
Range
,
OneToOne
)
TEST
(
Where
,
OneToOne
)
{
int
src
[]
=
{
5
};
int
ans
[]
=
{
5
};
...
...
@@ -101,7 +101,7 @@ TEST(WhereRange, OneToOne)
CheckRangeEqArray
(
dst
,
ans
);
}
TEST
(
Where
Range
,
ManyToZero
)
TEST
(
Where
,
ManyToZero
)
{
int
src
[]
=
{
0
,
1
,
2
};
...
...
@@ -111,7 +111,7 @@ TEST(WhereRange, ManyToZero)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Where
Range
,
OneToZero
)
TEST
(
Where
,
OneToZero
)
{
int
src
[]
=
{
5
};
...
...
@@ -121,7 +121,7 @@ TEST(WhereRange, OneToZero)
EXPECT_THROW
(
dst
.
next
(),
LinqEndException
);
}
TEST
(
Where
Range
,
ZeroToZero
)
TEST
(
Where
,
ZeroToZero
)
{
std
::
vector
<
int
>
src
;
...
...
test/main.cpp
View file @
d36208eb
#include <gtest/gtest.h>
////////////////////////////////////////////////////////////////
/*
template<class R, class T>
R find(R r, T value)
{
for (; !r.empty(); r.popFront())
if (value == r.front()) break;
return r;
}
template<class R, class T>
R find_end(R r, T value)
{
return retro(find(retro(r), value));
}
*/
////////////////////////////////////////////////////////////////
int
main
(
int
argc
,
char
*
argv
[])
{
::
testing
::
InitGoogleMock
(
&
argc
,
argv
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment