Skip to content

Commit

Permalink
Convert SimpifierFoldAbsNegTest tests to use Tril::format() instead o…
Browse files Browse the repository at this point in the history
…f std::snprintf()
  • Loading branch information
janvrany committed Dec 15, 2023
1 parent 505dbdd commit 13024c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fvtest/compilertriltest/SimplifierFoldAbsNegTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class NoAbsAbsIlVerifier : public SimplifierFoldAbsNegTestIlVerifierBase
*/
TYPED_TEST(SimplifierFoldAbsNegTest, FoldAbsAbs) {
char inputTrees[256];
std::snprintf(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
Tril::format(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
" (block "
" (%sreturn "
" (%sabs "
Expand Down Expand Up @@ -171,7 +171,7 @@ class NoAbsNegIlVerifier : public SimplifierFoldAbsNegTestIlVerifierBase
*/
TYPED_TEST(SimplifierFoldAbsNegTest, FoldAbsNeg) {
char inputTrees[256];
std::snprintf(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
Tril::format(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
" (block "
" (%sreturn "
" (%sabs "
Expand Down Expand Up @@ -214,7 +214,7 @@ class NoNegNegIlVerifier : public SimplifierFoldAbsNegTestIlVerifierBase
*/
TYPED_TEST(SimplifierFoldAbsNegTest, FoldNegNeg) {
char inputTrees[256];
std::snprintf(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
Tril::format(inputTrees, sizeof(inputTrees), "(method return=%s args=[%s] "
" (block "
" (%sreturn "
" (%sneg "
Expand Down

0 comments on commit 13024c5

Please sign in to comment.