Skip to content

Commit 47657f2

Browse files
refactor: Moves & comments volume units
1 parent e42c209 commit 47657f2

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Sources/Units/Unit/DefaultUnits.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -986,12 +986,7 @@ enum DefaultUnits {
986986
dimension: [.Length: 3],
987987
coefficient: 1000
988988
)
989-
static let bushel = try! DefinedUnit(
990-
name: "bushel",
991-
symbol: "bushel",
992-
dimension: [.Length: 3],
993-
coefficient: 0.03523907
994-
)
989+
// Liquid measures
995990
static let teaspoon = try! DefinedUnit(
996991
name: "teaspoon",
997992
symbol: "tsp",
@@ -1022,7 +1017,6 @@ enum DefaultUnits {
10221017
dimension: [.Length: 3],
10231018
coefficient: 473.176473e-6
10241019
)
1025-
// Liquid quart: https://en.wikipedia.org/wiki/Quart#US_liquid_quart
10261020
static let quart = try! DefinedUnit(
10271021
name: "quart",
10281022
symbol: "qt",
@@ -1035,6 +1029,14 @@ enum DefaultUnits {
10351029
dimension: [.Length: 3],
10361030
coefficient: 0.003785411784
10371031
)
1032+
// Dry measures
1033+
static let bushel = try! DefinedUnit(
1034+
name: "bushel",
1035+
symbol: "bushel",
1036+
dimension: [.Length: 3],
1037+
coefficient: 0.03523907
1038+
)
1039+
// Imperial measures
10381040
static let imperialFluidOunce = try! DefinedUnit(
10391041
name: "imperialFluidOunce",
10401042
symbol: "ifl_oz",

0 commit comments

Comments
 (0)