Commit Graph

29 Commits

Author SHA1 Message Date
Juhani Krekelä e6ec05323f Add more ways to spell square inches 2023-05-29 21:58:29 +03:00
Juhani Krekelä c81ebb80df Add more ways to spell degrees Fahrenheit 2023-05-29 21:52:34 +03:00
Juhani Krekelä 5335e141a4 Allow units to contain nubers after a caret 2023-05-29 21:48:45 +03:00
Juhani Krekelä fbbafcd2ec Allow units to contain spaces 2023-05-29 21:43:02 +03:00
Juhani Krekelä 1842d480e1 Disallow several temperatures in input 2023-05-29 21:39:48 +03:00
Juhani Krekelä 1a493a1716 Fix spelling Celcius → Celsius 2023-05-29 21:37:56 +03:00
Juhani Krekelä 055ab32a99 Add support for square miles 2023-05-29 03:28:09 +03:00
Juhani Krekelä 7a7959c172 Add support for acres 2023-05-29 03:28:09 +03:00
Juhani Krekelä 85c5c9d66f Add support for square feet 2023-05-29 03:28:09 +03:00
Juhani Krekelä 7eb31b1b4b Add support for square inches 2023-05-29 03:28:09 +03:00
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