feat: Begins adding html snapshot tests.

This commit is contained in:
2025-03-07 09:08:08 -05:00
parent b42b9cf03b
commit 35a54db9a3
30 changed files with 1011 additions and 66 deletions

View File

@@ -6,16 +6,16 @@ public enum HeatingBalancePoint {
Calculate the heating balance point.
"""
public enum Mode: String, CaseIterable, Codable, Equatable, Sendable {
public enum Mode: String, CaseIterable, Codable, Equatable, Sendable, Hashable {
case economic
case thermal
}
public enum Request: Codable, Equatable, Sendable {
public enum Request: Codable, Equatable, Sendable, Hashable {
case economic(Economic)
case thermal(Thermal)
public struct Economic: Codable, Equatable, Sendable {
public struct Economic: Codable, Equatable, Sendable, Hashable {
public let fuelType: FuelType
public let fuelCostPerUnit: Double
@@ -35,7 +35,7 @@ public enum HeatingBalancePoint {
}
}
public struct Thermal: Codable, Equatable, Sendable {
public struct Thermal: Codable, Equatable, Sendable, Hashable {
public let systemSize: Double
public let capacityAt47: Double?
@@ -119,9 +119,9 @@ public enum HeatingBalancePoint {
}
}
public enum HeatLoss: Codable, Equatable, Sendable {
public enum HeatLoss: Codable, Equatable, Sendable, Hashable {
public enum Mode: String, CaseIterable, Codable, Equatable, Sendable {
public enum Mode: String, CaseIterable, Codable, Equatable, Sendable, Hashable {
case estimated
case known
}
@@ -137,7 +137,7 @@ public enum HeatingBalancePoint {
}
}
public enum FuelType: String, CaseIterable, Codable, Equatable, Sendable {
public enum FuelType: String, CaseIterable, Codable, Equatable, Sendable, Hashable {
case naturalGas
case propane
case oil