Skip to content

Commit 65721f6

Browse files
committed
Fix unit test
1 parent 3a50df9 commit 65721f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAI/Tests/Unit/TemplateInputTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import XCTest
1919
final class TemplateInputTests: XCTestCase {
2020
func testInitWithFloat() throws {
2121
let floatValue: Float = 3.14
22-
let templateInput = try TemplateInput(value: floatValue)
23-
guard case let .double(doubleValue) = templateInput else {
22+
let templateInput = TemplateInput(floatValue)
23+
guard case let .number(doubleValue) = templateInput.value else {
2424
XCTFail("Expected a .double case, but got \(templateInput)")
2525
return
2626
}

0 commit comments

Comments
 (0)