equations: Rename PerfectGas equation to IdealGas

This is the way this is described in English.

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-05-13 23:51:06 +02:00
parent d68f8b26dc
commit 3e7d65a330
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
"Phys"
"RelativityMassEnergy", "'E=m*Ⓒc^2'"
"PerfectGas", "'P*V=n*ⒸR*T'"
"RelativityMassEnergy", "'E=m*Ⓒc^2'"
"IdealGas", "'P*V=n*ⒸR*T'"

Can't render this file because it has a wrong number of fields in line 3.

View file

@ -57,7 +57,7 @@ static const cstring basic_equations[] =
"Phys", nullptr,
"RelativityMassEnergy", "'E=m*c^2'",
"PerfectGas", "'P*V=n*ⒸR*T'"
"IdealGas", "'P*V=n*ⒸR*T'"
};
// clang-format on

View file

@ -6607,7 +6607,7 @@ void tests::insertion_of_variables_constants_and_units()
.test(CLEAR, "\"NA\" CONST", ENTER)
.expect("6.0221367⁳²³mol⁻¹");
step("Programmatic equation lookup (text)")
.test(CLEAR, "\"PerfectGas\" LIBEQ", ENTER)
.test(CLEAR, "\"IdealGas\" LIBEQ", ENTER)
.expect("'P·V=n·R·T'");
step("Programmatic library lookup (text)")
.test(CLEAR, "\"LibraryHelp\" XLIB", ENTER)
@ -6616,7 +6616,7 @@ void tests::insertion_of_variables_constants_and_units()
.test(CLEAR, "NotExistent CONST", ENTER)
.error("Invalid or unknown constant");
step("Programmatic equation lookup (error)")
.test(CLEAR, "\"ImperfectGas\" LIBEQ", ENTER)
.test(CLEAR, "\"StrangeGas\" LIBEQ", ENTER)
.error("Not an equation or program");
step("Programmatic library lookup (error)")
.test(CLEAR, "\"Glop\" XLIB", ENTER)