Skip to content

Commit 50b673e

Browse files
committed
rename logical
1 parent 903425b commit 50b673e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Firestore/Swift/Source/ExpressionImplementation.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ extension Expression {
343343
func stringReplace(_ find: Expression, with replace: Expression) -> FunctionExpression {
344344
return FunctionExpression("string_replace", [self, find, replace])
345345
}
346-
346+
347347
// MARK: Equivalence Operations
348348

349349
/// Creates a `BooleanExpr` that returns `true` if this expression is equivalent
@@ -771,21 +771,21 @@ public extension Expression {
771771
// MARK: Logical min/max
772772

773773
func logicalMaximum(_ expressions: [Expression]) -> FunctionExpression {
774-
return FunctionExpression("logical_maximum", [self] + expressions)
774+
return FunctionExpression("maximum", [self] + expressions)
775775
}
776776

777777
func logicalMaximum(_ values: [Sendable]) -> FunctionExpression {
778778
let exprs = [self] + values.map { Helper.sendableToExpr($0) }
779-
return FunctionExpression("logical_maximum", exprs)
779+
return FunctionExpression("maximum", exprs)
780780
}
781781

782782
func logicalMinimum(_ expressions: [Expression]) -> FunctionExpression {
783-
return FunctionExpression("logical_minimum", [self] + expressions)
783+
return FunctionExpression("minimum", [self] + expressions)
784784
}
785785

786786
func logicalMinimum(_ values: [Sendable]) -> FunctionExpression {
787787
let exprs = [self] + values.map { Helper.sendableToExpr($0) }
788-
return FunctionExpression("logical_minimum", exprs)
788+
return FunctionExpression("minimum", exprs)
789789
}
790790

791791
// MARK: Vector Operations

Firestore/Swift/Tests/Integration/PipelineTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,13 +3224,13 @@ class PipelineIntegrationTests: FSTIntegrationTestCase {
32243224
func testErrorExpressionWorks() async throws {
32253225
let collRef = collectionRef(withDocuments: ["doc1": ["foo": 1]])
32263226
let db = collRef.firestore
3227-
3227+
32283228
let pipeline = db.pipeline()
32293229
.collection(collRef.path)
32303230
.select([
32313231
ErrorExpression("This is a test error").as("error"),
32323232
])
3233-
3233+
32343234
do {
32353235
let _ = try await pipeline.execute()
32363236
XCTFail("The pipeline should have thrown an error, but it did not.")

0 commit comments

Comments
 (0)