We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a50df9 commit 65721f6Copy full SHA for 65721f6
FirebaseAI/Tests/Unit/TemplateInputTests.swift
@@ -19,8 +19,8 @@ import XCTest
19
final class TemplateInputTests: XCTestCase {
20
func testInitWithFloat() throws {
21
let floatValue: Float = 3.14
22
- let templateInput = try TemplateInput(value: floatValue)
23
- guard case let .double(doubleValue) = templateInput else {
+ let templateInput = TemplateInput(floatValue)
+ guard case let .number(doubleValue) = templateInput.value else {
24
XCTFail("Expected a .double case, but got \(templateInput)")
25
return
26
}
0 commit comments