mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Don't use gray for unit decompositions (#13)
Despite being an official SI derived unit, gray is only meant to be used in the context of ionizing radiation. There is no official SI unit for specific heat capacity.
This commit is contained in:
parent
311b9928ce
commit
70ad6fb6b4
2 changed files with 1 additions and 2 deletions
|
@ -379,7 +379,6 @@ pub(crate) fn load_defs(ctx: &mut Context, defs: Defs) -> Vec<String> {
|
|||
decomposition_units.insert("tesla");
|
||||
decomposition_units.insert("lumen");
|
||||
decomposition_units.insert("lux");
|
||||
decomposition_units.insert("gray");
|
||||
decomposition_units.insert("katal");
|
||||
|
||||
let mut prefix_lookup = BTreeMap::new();
|
||||
|
|
|
@ -351,7 +351,7 @@ fn test_unary_operators() {
|
|||
|
||||
#[test]
|
||||
fn test_equals() {
|
||||
test("a = kg N / W^2", "1 second^2 / gray meter");
|
||||
test("a = kg N / W^2", "1 second^4 / meter^3");
|
||||
test(
|
||||
"1 = kg",
|
||||
"= is currently only used for inline unit definitions: expected unit, got 1",
|
||||
|
|
Loading…
Reference in a new issue