Skip to content

Commit eeb9e66

Browse files
committed
module rename updates after rebase for unit tests
1 parent 7bd5d2c commit eeb9e66

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

FirebaseAI/Tests/Unit/TemplateChatSessionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
@testable import FirebaseAI
15+
@testable import FirebaseAILogic
1616
import FirebaseCore
1717
import XCTest
1818

FirebaseAI/Tests/Unit/TemplateGenerativeModelTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
@testable import FirebaseAI
15+
@testable import FirebaseAILogic
1616
import FirebaseCore
1717
import XCTest
1818

FirebaseAI/Tests/Unit/TemplateImagenModelTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
@testable import FirebaseAI
15+
@testable import FirebaseAILogic
1616
import XCTest
1717

1818
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
@testable import FirebaseAILogic
16+
import XCTest
17+
18+
@available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
19+
final class TemplateVariableTests: XCTestCase {
20+
func testInitWithFloat() throws {
21+
let floatValue: Float = 3.14
22+
let templateVariable = try TemplateVariable(value: floatValue)
23+
guard case let .double(doubleValue) = templateVariable else {
24+
XCTFail("Expected a .double case, but got \(templateVariable)")
25+
return
26+
}
27+
XCTAssertEqual(doubleValue, Double(floatValue), accuracy: 1e-6)
28+
}
29+
}

0 commit comments

Comments
 (0)