Actually test requirement parsing output (not just if it succeded)

This commit is contained in:
a_dinosaur committed 2025-07-06 17:01:19 +10:00
1 parent 058f9070ad
commit d850b9998d
3 files changed
+32 -20

No files matched your search

@@ -5,7 +5,7 @@
import Foundation
internal struct ApkVersionRequirement: Hashable {
internal struct ApkVersionRequirement: Sendable, Hashable {
let name: String
let versionSpec: ApkVersionSpecification
@@ -3,13 +3,13 @@
* SPDX-License-Identifier: Apache-2.0
*/
enum ApkVersionSpecification: Equatable, Hashable {
case any(invert: Bool)
case constraint(invert: Bool, op: Operator, version: String)
enum ApkVersionSpecification: Equatable, Hashable, Sendable {
case any(invert: Bool = false)
case constraint(invert: Bool = false, op: Operator, version: String)
}
extension ApkVersionSpecification {
enum Operator: Equatable {
enum Operator: Equatable, Sendable {
case equals
case fuzzyEquals
case greater