diff --git a/share/goodie/conversions/conversions.js b/share/goodie/conversions/conversions.js index e73099324..1cb95af1e 100644 --- a/share/goodie/conversions/conversions.js +++ b/share/goodie/conversions/conversions.js @@ -587,7 +587,8 @@ DDH.conversions = DDH.conversions || {}; { symbol: 'dbar', name: 'Decibar' }, { symbol: 'kbar', name: 'Kilobar' }, { symbol: 'Mbar', name: 'Megabar' }, - { symbol: 'Gbar', name: 'Gigabar' } + { symbol: 'Gbar', name: 'Gigabar' }, + { symbol: 'GPa', name: 'Gigapascal' }, ], defaults: ['Pa', 'psi'] }, diff --git a/t/Conversions.t b/t/Conversions.t index e5a6842c0..422cd9826 100755 --- a/t/Conversions.t +++ b/t/Conversions.t @@ -536,6 +536,22 @@ ddg_goodie_test( physical_quantity => 'pressure' }) ), + '1 gpa to megapascal' => test_zci( + '', structured_answer => make_answer({ + raw_input => '1', + from_unit => 'GPa', + to_unit => 'MPa', + physical_quantity => 'pressure' + }) + ), + '1 gpa to gbar' => test_zci( + '', structured_answer => make_answer({ + raw_input => '1', + from_unit => 'GPa', + to_unit => 'Gbar', + physical_quantity => 'pressure' + }) + ), # DURATION '36 months to years' => test_zci( '', structured_answer => make_answer({