Skip to content

Commit f4ea253

Browse files
committed
WIP
1 parent b53c8f0 commit f4ea253

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

test/test_interpreter.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ TEST_SUITE("xassist"){
904904

905905
}
906906

907-
TEST_CASE("gemini"){
907+
TEST_CASE("gemini_save"){
908908
xcpp::xassist assist;
909909
std::string line = "%%xassist gemini --save-key";
910910
std::string cell = "1234";
@@ -927,6 +927,18 @@ TEST_SUITE("xassist"){
927927
// std::remove("gemini_api_key.txt");
928928
}
929929

930+
TEST_CASE("gemini"){
931+
xcpp::xassist assist;
932+
std::string line = "%%xassist gemini";
933+
std::string cell = "hello";
934+
935+
StreamRedirectRAII redirect(std::cerr);
936+
937+
assist(line, cell);
938+
939+
REQUIRE(!redirect.getCaptured().empty());
940+
}
941+
930942
// TEST_CASE("openai"){
931943
// xcpp::xassist assist;
932944
// std::string line = "%%xassist openai --save-key";

0 commit comments

Comments
 (0)