Skip to content

Commit 6868ce5

Browse files
committed
update tests
1 parent dd0dd2e commit 6868ce5

File tree

1 file changed

+10
-0
lines changed
  • firebase-ai/src/test/java/com/google/firebase/ai/type

1 file changed

+10
-0
lines changed

firebase-ai/src/test/java/com/google/firebase/ai/type/ToolTest.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ internal class ToolTest {
2727

2828
tool.googleSearch.shouldNotBeNull()
2929
tool.functionDeclarations.shouldBeNull()
30+
tool.codeExecution.shouldBeNull()
3031
}
3132

3233
@Test
@@ -36,5 +37,14 @@ internal class ToolTest {
3637

3738
tool.functionDeclarations?.first() shouldBe functionDeclaration
3839
tool.googleSearch.shouldBeNull()
40+
tool.codeExecution.shouldBeNull()
41+
}
42+
43+
@Test
44+
fun `codeExecution() creates a tool with code execution`() {
45+
val tool = Tool.codeExecution()
46+
tool.codeExecution.shouldNotBeNull()
47+
tool.functionDeclarations.shouldBeNull()
48+
tool.googleSearch.shouldBeNull()
3949
}
4050
}

0 commit comments

Comments
 (0)