From 47657f207518c1666c35da7e709bc2b144d7d5de Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Wed, 17 Apr 2024 21:26:58 -0600 Subject: [PATCH] refactor: Moves & comments volume units --- Sources/Units/Unit/DefaultUnits.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Sources/Units/Unit/DefaultUnits.swift b/Sources/Units/Unit/DefaultUnits.swift index 434352c..9f6e243 100644 --- a/Sources/Units/Unit/DefaultUnits.swift +++ b/Sources/Units/Unit/DefaultUnits.swift @@ -986,12 +986,7 @@ enum DefaultUnits { dimension: [.Length: 3], coefficient: 1000 ) - static let bushel = try! DefinedUnit( - name: "bushel", - symbol: "bushel", - dimension: [.Length: 3], - coefficient: 0.03523907 - ) + // Liquid measures static let teaspoon = try! DefinedUnit( name: "teaspoon", symbol: "tsp", @@ -1022,7 +1017,6 @@ enum DefaultUnits { dimension: [.Length: 3], coefficient: 473.176473e-6 ) - // Liquid quart: https://en.wikipedia.org/wiki/Quart#US_liquid_quart static let quart = try! DefinedUnit( name: "quart", symbol: "qt", @@ -1035,6 +1029,14 @@ enum DefaultUnits { dimension: [.Length: 3], coefficient: 0.003785411784 ) + // Dry measures + static let bushel = try! DefinedUnit( + name: "bushel", + symbol: "bushel", + dimension: [.Length: 3], + coefficient: 0.03523907 + ) + // Imperial measures static let imperialFluidOunce = try! DefinedUnit( name: "imperialFluidOunce", symbol: "ifl_oz",