Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
TransformerEngine
Commits
ba8c923e
Unverified
Commit
ba8c923e
authored
Jun 16, 2025
by
Tim Moon
Committed by
GitHub
Jun 16, 2025
Browse files
Fix test case that assumes char is signed (#1881)
Signed-off-by:
Tim Moon
<
tmoon@nvidia.com
>
parent
8ce49c01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/cpp/util/test_string.cpp
tests/cpp/util/test_string.cpp
+1
-1
No files found.
tests/cpp/util/test_string.cpp
View file @
ba8c923e
...
...
@@ -38,7 +38,7 @@ TEST(UtilTest, ToStringLike) { // to_string_like
// Non-zero integer types
EXPECT_EQ
(
to_string_like
(
static_cast
<
char
>
(
1
)),
"1"
);
EXPECT_EQ
(
to_string_like
(
static_cast
<
char
>
(
-
1
)),
"-1"
);
EXPECT_EQ
(
to_string_like
(
static_cast
<
signed
char
>
(
-
1
)),
"-1"
);
EXPECT_EQ
(
to_string_like
(
static_cast
<
unsigned
char
>
(
2
)),
"2"
);
EXPECT_EQ
(
to_string_like
(
static_cast
<
short
>
(
3
)),
"3"
);
EXPECT_EQ
(
to_string_like
(
static_cast
<
short
>
(
-
5
)),
"-5"
);
...
...
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