Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Added nanometers, fixed others
Browse files Browse the repository at this point in the history
  • Loading branch information
Nalin Bhardwaj committed Jan 25, 2017
1 parent 7b0eae4 commit b0cc4c5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
60 changes: 30 additions & 30 deletions share/goodie/conversions/ratios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,34 @@ type: length
unit: millimeter
plural: millimeters
---
aliases:
- micrometre
- micrometres
- µm
- µms
factor: 1e06
type: length
unit: micrometer
plural: micrometers
---
aliases:
- nanometre
- nanometres
factor: 1e09
type: length
unit: nanometer
plural: nanometers
---
aliases:
- picometre
- picometres
- pm
- pms
factor: 1e12
type: length
unit: picometer
plural: picometers
---
aliases:
- thou
- thous
Expand Down Expand Up @@ -892,8 +920,6 @@ plural: leap years
aliases:
- pa
- pas
- pascal
- pascals
factor: 1
type: pressure
unit: pascal
Expand All @@ -902,8 +928,6 @@ plural: pascals
aliases:
- kpa
- kpas
- kilopascal
- kilopascals
factor: 0.001
type: pressure
unit: kilopascal
Expand All @@ -922,16 +946,12 @@ plural: megapascals
aliases:
- gpa
- gpas
- gigapascal
- gigapascals
factor: 1e-09
type: pressure
unit: gigapascal
plural: gigapascals
---
aliases:
- bar
- bars
aliases: []
factor: 1e-05
type: pressure
unit: bar
Expand Down Expand Up @@ -1645,24 +1665,4 @@ aliases:
factor: 1.943844492440605
type: speed
unit: knot
plural: knots
---
aliases:
- micrometre
- micrometres
- µm
- µms
factor: 1e06
type: length
unit: micrometer
plural: micrometers
---
aliases:
- picometre
- picometres
- pm
- pms
factor: 1e12
type: length
unit: picometer
plural: picometers
plural: knots
12 changes: 12 additions & 0 deletions t/Conversions.t
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,18 @@ ddg_goodie_test(
physical_quantity => 'length'
})
),
'mm in inch' => test_zci(
'1 inch = 25.400 millimeters',
structured_answer => make_answer({
markup_input => '1',
raw_input => '1',
from_unit => 'inch',
styled_output => '25.400',
raw_answer => '25.400',
to_unit => 'millimeters',
physical_quantity => 'length'
})
),
'how many fl oz in a cup' => test_zci (
'1 us cup = 8 us fluid ounces',
structured_answer => make_answer({
Expand Down

0 comments on commit b0cc4c5

Please sign in to comment.