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
Gauthier Quesnel
irritator
Commits
ae297e6f
Commit
ae297e6f
authored
Jun 16, 2020
by
Gauthier Quesnel
Browse files
tests: fix sign cast in comparison
parent
aa8aa45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/test/public-api.cpp
View file @
ae297e6f
...
@@ -782,7 +782,7 @@ main()
...
@@ -782,7 +782,7 @@ main()
do
{
do
{
st
=
sim
.
run
(
t
);
st
=
sim
.
run
(
t
);
expect
(
irt
::
is_success
(
st
));
expect
(
irt
::
is_success
(
st
));
expect
(
cnt
.
number
<=
static_cast
<
long
unsigned
>
(
t
));
expect
(
cnt
.
number
<=
static_cast
<
irt
::
i64
>
(
t
));
}
while
(
t
<
sim
.
end
);
}
while
(
t
<
sim
.
end
);
expect
(
cnt
.
number
==
9
_ul
);
expect
(
cnt
.
number
==
9
_ul
);
...
@@ -836,7 +836,7 @@ main()
...
@@ -836,7 +836,7 @@ main()
do
{
do
{
st
=
sim
.
run
(
t
);
st
=
sim
.
run
(
t
);
expect
(
irt
::
is_success
(
st
));
expect
(
irt
::
is_success
(
st
));
expect
(
cnt
.
number
<=
static_cast
<
long
unsigned
>
(
t
));
expect
(
cnt
.
number
<=
static_cast
<
irt
::
i64
>
(
t
));
}
while
(
t
<
10.0
);
}
while
(
t
<
10.0
);
expect
(
cnt
.
number
==
9
_ul
);
expect
(
cnt
.
number
==
9
_ul
);
...
@@ -892,7 +892,7 @@ main()
...
@@ -892,7 +892,7 @@ main()
do
{
do
{
st
=
sim
.
run
(
t
);
st
=
sim
.
run
(
t
);
expect
(
irt
::
is_success
(
st
));
expect
(
irt
::
is_success
(
st
));
expect
(
cnt
.
number
<=
static_cast
<
long
unsigned
>
(
3
*
t
));
expect
(
cnt
.
number
<=
static_cast
<
irt
::
i64
>
(
3
*
t
));
}
while
(
t
<
10.0
);
}
while
(
t
<
10.0
);
expect
(
cnt
.
number
==
27
_ul
);
expect
(
cnt
.
number
==
27
_ul
);
...
@@ -923,7 +923,7 @@ main()
...
@@ -923,7 +923,7 @@ main()
auto
st
=
sim
.
run
(
t
);
auto
st
=
sim
.
run
(
t
);
!
expect
(
irt
::
is_success
(
st
));
!
expect
(
irt
::
is_success
(
st
));
expect
(
time_fun
.
value
==
t
*
t
);
expect
(
time_fun
.
value
==
t
*
t
);
expect
(
cnt
.
number
<=
static_cast
<
long
unsigned
>
(
t
));
expect
(
cnt
.
number
<=
static_cast
<
irt
::
i64
>
(
t
));
}
while
(
t
<
30
);
}
while
(
t
<
30
);
};
};
...
@@ -1235,5 +1235,3 @@ main()
...
@@ -1235,5 +1235,3 @@ main()
}
while
(
t
<
120
);
}
while
(
t
<
120
);
};
};
}
}
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