Commit Graph

19 Commits

Author SHA1 Message Date
Juhani Krekelä d6441454fc Split format::test::units to per-unit tests 2023-05-29 02:54:27 +03:00
Juhani Krekelä ebff87c733 Remove extraneus comma in a match statement 2023-05-28 23:44:49 +03:00
Juhani Krekelä 46146ca712 Fix inconsistent newline before else if 2023-05-28 23:40:42 +03:00
Juhani Krekelä 88d143b8e6 Add CC0 license 2023-05-28 23:24:05 +03:00
Juhani Krekelä 81082fd11d Add support for degrees Fahrenheit 2023-05-28 20:32:31 +03:00
Juhani Krekelä b3fa9a01f1 Add conversion tests 2023-05-28 20:02:35 +03:00
Juhani Krekelä f8db69e3b2 Format numbers so that they are easier to read 2023-05-28 20:02:06 +03:00
Juhani Krekelä d77a84fef1 Use SI-prefixes that make sense for the given unit 2023-05-28 18:57:49 +03:00
Juhani Krekelä 3dee08d6d4 Change parse_number and parse_unit to return Results directly 2023-05-28 18:22:49 +03:00
Juhani Krekelä 54118ca879 Fix parsing of numbers with internal spaces 2023-05-28 18:10:18 +03:00
Juhani Krekelä 188df1fa5c Add test for negative number formatting 2023-05-14 04:41:39 +03:00
Juhani Krekelä 2b449c80f5 Implement user interface 2023-05-14 04:38:20 +03:00
Juhani Krekelä e915a3f689 Implement output formatting 2023-05-14 04:23:39 +03:00
Juhani Krekelä da620a04aa Implement most of application logic 2023-05-14 03:40:21 +03:00
Juhani Krekelä 7d82e46fd7 Implement parsing 2023-05-14 03:04:47 +03:00
Juhani Krekelä 034ffed997 Order units in order of size 2023-05-14 02:18:27 +03:00
Juhani Krekelä 7170ac3240 Reorder conversions.rs such that helpers are after primary functions 2023-05-14 02:18:09 +03:00
Juhani Krekelä c79584d807 Restate imperial lengths and weights in terms of inches and pounds 2023-05-13 20:29:34 +03:00
Juhani Krekelä 06083dbce9 First commit 2023-05-13 17:50:18 +03:00