Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
dorie
dorie
Commits
f95146b4
Commit
f95146b4
authored
Feb 03, 2019
by
Santiago Ospina De Los Ríos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Test] Fix bool checks in grid function container test
parent
78e6d2c4
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dune/dorie/test/test-grid-function-container.cc
dune/dorie/test/test-grid-function-container.cc
+3
-3
No files found.
dune/dorie/test/test-grid-function-container.cc
View file @
f95146b4
...
...
@@ -153,7 +153,7 @@ bool test_container(GV& gv)
gf_container
.
setTime
(
1.5
);
gf_container
.
shrink_to_time
();
gf_container
.
evaluate
(
entity
,
x
,
y
);
failed
|=
gf_container
.
size
()
=
=
2
;
failed
|=
gf_container
.
size
()
!
=
2
;
try
{
gf_container
.
setTime
(
0.5
);
gf_container
.
setTime
(
1.5
);
...
...
@@ -164,7 +164,7 @@ bool test_container(GV& gv)
gf_container
.
setTime
(
1.
);
gf_container
.
shrink_to_time
();
gf_container
.
evaluate
(
entity
,
x
,
y
);
failed
|=
gf_container
.
size
()
=
=
1
;
failed
|=
gf_container
.
size
()
!
=
1
;
try
{
gf_container
.
setTime
(
0.5
);
gf_container
.
setTime
(
1.5
);
...
...
@@ -176,7 +176,7 @@ bool test_container(GV& gv)
gf_container
.
pop
();
// check that container is void
failed
|=
gf_container
.
size
()
=
=
0
;
failed
|=
gf_container
.
size
()
!
=
0
;
// evaluate an empty container should rise an error
try
{
...
...
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