Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Calendar Support
Commits
860ca0c2
Commit
860ca0c2
authored
Jun 02, 2021
by
Glen Ditchfield
🐛
Browse files
Fix autotest by partially reverting
298a8e32
Autotests tend to fail when you comment out the function being tested.
parent
823b53dc
Pipeline
#63914
passed with stage
in 6 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/autotests/placeitemtest.cpp
View file @
860ca0c2
...
...
@@ -136,7 +136,7 @@ void PlaceItemTest::fillLeftGap()
auto
item2
=
std
::
make_unique
<
TestItem
>
(
"item2"
,
1
,
3
,
1
,
2
);
const
QList
<
CellItem
*>
cells
({
item1
.
get
(),
item2
.
get
()});
auto
newItem
=
std
::
make_unique
<
TestItem
>
(
"new"
,
2
,
4
);
// auto overlappers =
CellItem::placeItem(cells, newItem.get());
(
void
)
CellItem
::
placeItem
(
cells
,
newItem
.
get
());
QCOMPARE
(
newItem
->
subCell
(),
item1
->
subCell
());
QCOMPARE
(
newItem
->
subCells
(),
2
);
}
...
...
@@ -152,7 +152,7 @@ void PlaceItemTest::fillCenterGap()
auto
item3
=
std
::
make_unique
<
TestItem
>
(
"item3"
,
1
,
3
,
2
,
3
);
const
QList
<
CellItem
*>
cells
({
item1
.
get
(),
item2
.
get
(),
item3
.
get
()});
auto
newItem
=
std
::
make_unique
<
TestItem
>
(
"new"
,
2
,
4
);
// auto overlappers =
CellItem::placeItem(cells, newItem.get());
(
void
)
CellItem
::
placeItem
(
cells
,
newItem
.
get
());
QCOMPARE
(
newItem
->
subCell
(),
item1
->
subCell
());
QCOMPARE
(
newItem
->
subCells
(),
3
);
}
...
...
@@ -170,7 +170,7 @@ void PlaceItemTest::transitiveOverlap()
auto
item3
=
std
::
make_unique
<
TestItem
>
(
"item3"
,
1
,
3
,
1
,
2
);
const
QList
<
CellItem
*>
cells
({
item1
.
get
(),
item2
.
get
(),
item3
.
get
()});
auto
newItem
=
std
::
make_unique
<
TestItem
>
(
"new"
,
2
,
4
);
// auto overlappers =
CellItem::placeItem(cells, newItem.get());
(
void
)
CellItem
::
placeItem
(
cells
,
newItem
.
get
());
QCOMPARE
(
newItem
->
subCells
(),
3
);
QCOMPARE
(
item1
->
subCells
(),
3
);
QCOMPARE
(
item2
->
subCells
(),
3
);
...
...
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