Commit 9cf6cfe
committed
🐛 Fix SequenceSet#delete?(num..num) to return set
According to the rdoc, using a range with `#delete?` should return a
sequence set (or nil), but the check came after importing the input, and
was based on whether the imported run contained multiple values. So
deleting a single number range (e.g: `1..1` or `"1:1"`) would return a
number not a set.1 parent 9b3208a commit 9cf6cfe
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
| 1027 | + | |
1027 | 1028 | | |
1028 | | - | |
| 1029 | + | |
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| |||
1790 | 1791 | | |
1791 | 1792 | | |
1792 | 1793 | | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1793 | 1802 | | |
1794 | 1803 | | |
1795 | 1804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
816 | 817 | | |
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| 821 | + | |
820 | 822 | | |
821 | 823 | | |
822 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
823 | 831 | | |
824 | 832 | | |
825 | 833 | | |
| |||
0 commit comments