Skip to content

Commit 7bf4c8c

Browse files
authored
Merge pull request #756 from denehoffman/master
2 parents 7315c71 + 7a5c3a6 commit 7bf4c8c

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

book/src/list-units.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ and — where sensible — units allow for [binary prefixes](https://en.wikipedi
223223
| `Volume` | [UK tablespoon](https://en.wikipedia.org/wiki/Tablespoon) | `imperial_tablespoon`, `UK_tablespoon`, `UK_tablespoons`, `UK_tbsp` |
224224
| `Volume` | [UK teaspoon](https://en.wikipedia.org/wiki/Teaspoon) | `imperial_teaspoon`, `imperial_teaspoons`, `UK_teaspoon`, `UK_teaspoons`, `UK_tsp` |
225225
| `Volume` | [Litre](https://en.wikipedia.org/wiki/Litre) | `l`, `L`, `liter`, `liters`, `litre`, `litres` |
226+
| `Volume` | [Metric tablespoon](https://en.wikipedia.org/wiki/Tablespoon) | `metric_tablespoon`, `metric_tablespoons`, `metric_tbsp` |
227+
| `Volume` | [Metric teaspoon](https://en.wikipedia.org/wiki/Teaspoon) | `metric_teaspoon`, `metric_teaspoons`, `metric_tsp` |
226228
| `Volume` | [US liquid pint](https://en.wikipedia.org/wiki/Pint) | `pint`, `pints` |
227229
| `Volume` | [Swimming pool](https://en.wikipedia.org/wiki/Olympic-size_swimming_pool) | `swimmingpool` |
228-
| `Volume` | [Metric tablespoon](https://en.wikipedia.org/wiki/Tablespoon) | `tablespoon`, `tablespoons`, `tbsp` |
229-
| `Volume` | [Metric teaspoon](https://en.wikipedia.org/wiki/Teaspoon) | `teaspoon`, `teaspoons`, `tsp` |
230-
| `Volume` | [US tablespoon](https://en.wikipedia.org/wiki/Tablespoon) | `US_tablespoon`, `US_tablespoons`, `US_tbsp` |
231-
| `Volume` | [US teaspoon](https://en.wikipedia.org/wiki/Teaspoon) | `US_teaspoon`, `US_teaspoons`, `US_tsp` |
230+
| `Volume` | [US tablespoon](https://en.wikipedia.org/wiki/Tablespoon) | `tablespoon`, `tablespoons`, `tbsp` |
231+
| `Volume` | [US teaspoon](https://en.wikipedia.org/wiki/Teaspoon) | `teaspoon`, `teaspoons`, `tsp` |

examples/tests/unit_consistency_misc.nbt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ assert_eq(1 gregorian_year, 365.2425 day)
1717
assert_eq(1 julian_year, 365.25 day)
1818
assert_eq(1 year, 1 tropical_year)
1919

20-
assert_eq(1 teaspoon, 5 mL, 1e-5 teaspoon)
20+
assert_eq(1 metric_teaspoon, 5 mL, 1e-5 metric_teaspoon)
21+
assert_eq(1 teaspoon, 4.92892159375 mL, 1e-5 teaspoon)
2122
assert_eq(3 teaspoon, 1 tablespoon, 1e-5 teaspoon)
2223

2324
assert_eq(1 gallon, 231 inch³, 1e-5 inch³)
2425
assert_eq(8 pint, 1 gallon)
2526
assert_eq(2 cup, 1 pint)
26-
assert_eq(16 US_tablespoon, 1 cup)
27-
assert_eq(3 US_teaspoon, 1 US_tablespoon, 1e-5 US_teaspoon)
28-
assert_eq(1 floz, 2 US_tablespoon)
27+
assert_eq(16 tablespoon, 1 cup)
28+
assert_eq(3 teaspoon, 1 tablespoon, 1e-5 teaspoon)
29+
assert_eq(1 floz, 2 tablespoon)
2930
assert_eq(1 hogshead, 63 gallon)
3031
assert_eq(1 rod, 16.5 foot)
3132

numbat/modules/units/misc.nbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ unit fermi: Length = 1 fm
176176

177177
@name("Metric tablespoon")
178178
@url("https://en.wikipedia.org/wiki/Tablespoon")
179-
@aliases(tablespoons, tbsp: short)
180-
unit tablespoon: Volume = 15 mL
179+
@aliases(metric_tablespoons, metric_tbsp: short)
180+
unit metric_tablespoon: Volume = 15 mL
181181

182182
@name("Metric teaspoon")
183183
@url("https://en.wikipedia.org/wiki/Teaspoon")
184-
@aliases(teaspoons, tsp: short)
185-
unit teaspoon: Volume = 1/3 × tablespoon
184+
@aliases(metric_teaspoons, metric_tsp: short)
185+
unit metric_teaspoon: Volume = 1/3 × metric_tablespoon

numbat/modules/units/us_customary.nbt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ unit cup: Volume = 1/2 × pint
1818

1919
@name("US tablespoon")
2020
@url("https://en.wikipedia.org/wiki/Tablespoon")
21-
@aliases(US_tablespoons, US_tbsp: short)
22-
unit US_tablespoon: Volume = 1/16 × cup
21+
@aliases(tablespoons, tbsp: short)
22+
unit tablespoon: Volume = 1/16 × cup
2323

2424
@name("US teaspoon")
2525
@url("https://en.wikipedia.org/wiki/Teaspoon")
26-
@aliases(US_teaspoons, US_tsp: short)
27-
unit US_teaspoon: Volume = 1/3 × US_tablespoon
26+
@aliases(teaspoons, tsp: short)
27+
unit teaspoon: Volume = 1/3 × tablespoon
2828

2929
@name("US fluid ounce")
3030
@url("https://en.wikipedia.org/wiki/Fluid_ounce")
3131
@aliases(fluidounces, floz: short)
32-
unit fluidounce: Volume = 2 US_tablespoon
32+
unit fluidounce: Volume = 2 tablespoon
3333

3434
@name("US hogshead")
3535
@url("https://en.wikipedia.org/wiki/Hogshead")

0 commit comments

Comments
 (0)