[apps/calculation] Add Joules to results on energy

Change-Id: Ib775b1bd2bac1fd3bf755a9a4d3d5b3739a67cfa
This commit is contained in:
Gabriel Ozouf
2020-09-25 12:37:05 +02:00
committed by Émilie Feral
parent 10f8e2f507
commit bc7ca057a0
3 changed files with 16 additions and 7 deletions

View File

@@ -653,6 +653,8 @@ public:
static_assert(strings_equal(k_temperatureRepresentatives[k_celsiusRepresentativeIndex].m_rootSymbol, "°C"), "Index for the Celsius Representative is incorrect.");
static constexpr int k_fahrenheitRepresentativeIndex = 2;
static_assert(strings_equal(k_temperatureRepresentatives[k_fahrenheitRepresentativeIndex].m_rootSymbol, "°F"), "Index for the Fahrenheit Representative is incorrect.");
static constexpr int k_jouleRepresentativeIndex = 0;
static_assert(strings_equal(k_energyRepresentatives[k_jouleRepresentativeIndex].m_rootSymbol, "J"), "Index for the Joule Representative is incorrect.");
static constexpr int k_electronVoltRepresentativeIndex = 1;
static_assert(strings_equal(k_energyRepresentatives[k_electronVoltRepresentativeIndex].m_rootSymbol, "eV"), "Index for the Electron Volt Representative is incorrect.");
static constexpr int k_wattRepresentativeIndex = 0;