Commit ad1b452
authored
INumber<T> Support (#10)
* Basic INumber implementation
* NumericOption core tests
* Basic math tests
* More operator tests
* Decided against NumericResult in favor of result.OkNumber()
* Generic zero and one
* Explicit interface implementation for INumberBase members that don't make sense in the public API
* Because System.Math doesn't support generic numbers, making some useful INumberBase methods public
* Adding useful public static methods: Min/Max/Clamp
* Code coverage in CI
* Code coverage report
* Switching to opencover
* Configuring codecov paths
* fixes for path from Windows build
* Parsing tests
* Additional parsing tests
* INumber method test coverage
* INumber method tests
* Avoiding duplicate codecov uploads
* Parsing tests
* Parsing coverage
* Create checked/saturating/truncating with tests
* Improving code coverage1 parent 0cd5f0b commit ad1b452
File tree
20 files changed
+2957
-524
lines changed- .github/workflows
- .vscode
- src
- RustyOptions.Tests
- RustyOptions
20 files changed
+2957
-524
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments