Skip to content

Commit 88954f7

Browse files
committed
tests : fix printfs (#8068)
1 parent ed67bcb commit 88954f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-chat-template.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ int main(void) {
146146
auto fmt_sys = [&](std::string tmpl) {
147147
auto output = llama_chat_format_single(nullptr, tmpl, chat2, sys_msg, false);
148148
printf("fmt_sys(%s) : %s\n", tmpl.c_str(), output.c_str());
149-
printf("-------------------------\n", output.c_str());
149+
printf("-------------------------\n");
150150
return output;
151151
};
152152
assert(fmt_sys("chatml") == "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n");
@@ -165,7 +165,7 @@ int main(void) {
165165
auto fmt_single = [&](std::string tmpl) {
166166
auto output = llama_chat_format_single(nullptr, tmpl, chat2, new_msg, true);
167167
printf("fmt_single(%s) : %s\n", tmpl.c_str(), output.c_str());
168-
printf("-------------------------\n", output.c_str());
168+
printf("-------------------------\n");
169169
return output;
170170
};
171171
assert(fmt_single("chatml") == "\n<|im_start|>user\nHow are you<|im_end|>\n<|im_start|>assistant\n");

0 commit comments

Comments
 (0)