Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-05-30 | ExpressionParser: use correct operand order | Adrien Hopkins | |
Most of the internal problems with the expression parser happened because I was accepting the arguments for binary operators in the wrong order. For example, '2 - 1' became '1 2 -', not '2 1 -'. The likely cause of this error is the following sequence of events: - In commit 6dbd32cd, I created the code for interpreting RPN. I accepted two arguments from the stack (o1 and o2), then performed o1 <op> o2. However, because stacks are in LIFO order, I should have actually done o2 <op> o1. - Later, in commit 94349688, I created the code for converting an infix expression to RPN. Creating the expressions in the correct order did not work, because my interpreter used the incorrect order. To 'fix' this problem, I created the expressions in the incorrect order. I did not notice any discrepancy, probably because I was not testing the individual methods, only the two-step whole (which found no errors). | |||
2025-05-21 | Add tests for submethods of ExpressionParser | Adrien Hopkins | |
These tests fail right now, because ExpressionParser has a bug. They should help me fix it. | |||
2025-04-30 | Add more UnitDatabase tests | Adrien Hopkins | |
2025-03-21 | Add tests for NameSymbol | Adrien Hopkins | |
2025-03-07 | Add tests for LinearUnitValue | Adrien Hopkins | |
I specifically added tests for the methods that Jacoco says haven't been tested: - convertToMultiple - equals - equivalent - hashCode - operation methods | |||
2024-08-22 | Show unit/dim file errors as popup | Adrien Hopkins | |
Previously, any error in the unit or dimension file(s) crashes the program. Instead, 7Units now ignores any invalid lines, still parsing the correct ones, and shows a popup in case any errors happen. | |||
2024-08-15 | Correct encoding of ± | Adrien Hopkins | |
2024-03-24 | Format source code & set explicit UTF-8 | Adrien Hopkins | |
2022-07-09 | Added documentation to undocumented tests | Adrien Hopkins | |
2022-04-18 | Implemented one-way conversion, duplicate prefixes can now be hidden | Adrien Hopkins | |
2022-04-18 | Implemented rounding and duplicate-removal settings into the new GUI | Adrien Hopkins | |
2022-02-26 | Implemented unit conversion, with a few problems | Adrien Hopkins | |
TabbedView now displays its units, but with their toString method which shows their definition in addition to their name | |||
2022-02-24 | Moved SemanticVersionNumber to sevenUnits.utils | Adrien Hopkins | |
2022-02-20 | Made the version number an object, changing it to 0.4.0-alpha+dev | Adrien Hopkins | |
2021-11-29 | Added a full suite of tests for the UncertainDouble | Adrien Hopkins | |
2021-11-04 | Added a bunch of tests related to unit values | Adrien Hopkins | |
2021-11-02 | Added a test for UnitDatabase.isRemovableDuplicate | Adrien Hopkins | |
2021-10-07 | Added tests for getUnit and the prefixed unit map | Adrien Hopkins | |
Also fixed a bug where a prefixed unit map with units but no prefixes would appear empty | |||
2021-10-04 | Added tests for valid & invalid dimension files | Adrien Hopkins | |
2021-10-04 | Removed unused imports | Adrien Hopkins | |
2021-09-27 | The ExpressionParser test is now a paramaterized test | Adrien Hopkins | |
2021-09-27 | Added a test for evaluating an expression & fixed a bug it found | Adrien Hopkins | |
The bug: non-exact LinearUnitValue instances have their value printed as "(", i.e. "(5.0 ± 0.1) m" will be printed as "( m" | |||
2021-09-27 | Added some tests for invalid unitfiles | Adrien Hopkins | |
2021-09-22 | Added a test to test loading unitfiles | Adrien Hopkins | |
2021-08-26 | Added units and dimensions to the design document | Adrien Hopkins | |
2021-08-07 | Renamed sevenUnits.math to sevenUnits.utils | Adrien Hopkins | |
2021-06-28 | Renamed project to 7Units | Adrien Hopkins | |