Skip to content

Commit 44336e5

Browse files
committed
Formatting
1 parent 6836e02 commit 44336e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

numbat/tests/interpreter.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,14 @@ fn test_incompatible_dimension_errors() {
342342
fn test_temperature_conversions() {
343343
expect_output("from_celsius(11.5)", "284.65 K");
344344
expect_output("from_fahrenheit(89.3)", "304.983 K");
345-
expect_output("celsius(0 K)", "-273.15");
345+
expect_output("0 K -> celsius", "-273.15");
346346
expect_output("fahrenheit(30 K)", "-405.67");
347-
expect_output("celsius(from_celsius(100))", "100");
348-
expect_output("fahrenheit(from_fahrenheit(100))", "100.0");
349-
expect_output("from_celsius(celsius(123 K))", "123 K");
350-
expect_output("from_fahrenheit(fahrenheit(123 K))", "123 K");
347+
expect_output("from_celsius(100) -> celsius", "100");
348+
expect_output("from_fahrenheit(100) -> fahrenheit", "100.0");
349+
expect_output("from_celsius(123 K -> celsius)", "123 K");
350+
expect_output("from_fahrenheit(123 K -> fahrenheit)", "123 K");
351351

352-
expect_output("-40 // from_fahrenheit // celsius", "-40");
352+
expect_output("-40 -> from_fahrenheit -> celsius", "-40");
353353
}
354354

355355
#[test]

0 commit comments

Comments
 (0)