Commit 315e5cb
Make FD÷FD return an FD. (#40)
* Make FD÷FD return an FD.
Before this, `FD{T,f} ÷ FD{T,f}` returned `T`, now it returns `FD{T,f}`.
Same for `div`, `fld`, and `fld`.
* Add some simple unit tests for ÷
There weren't any tests of `div` before, so this adds some simple ones.
* Add comment explaining why div() doesn't need widening logic
* Fix div (÷) tests to actually test output type
* Include explicit test of Return Types1 parent 07d24d9 commit 315e5cb
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
511 | 541 | | |
512 | 542 | | |
513 | 543 | | |
| |||
0 commit comments