Skip to content

Commit 2a80393

Browse files
author
ochafik
committed
avoid gtest regex weirdness on win32
1 parent 16c5a71 commit 2a80393

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test-chat-template.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,9 @@ static std::string render(const std::string & template_str, const chat_template_
6565
}
6666

6767
TEST(ChatTemplateTest, SimpleCases) {
68+
#ifdef _WIN32
69+
fprintf(stderr, "Skipping test on Windows\n");
70+
#else
6871
EXPECT_THAT(render("{{ strftime_now('%Y-%m-%d %H:%M:%S') }}", {}, {}), MatchesRegex(R"([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})"));
72+
#endif
6973
}

0 commit comments

Comments
 (0)