Commit df1fbd4
committed
fix some issues with make_dirty
on test:
- make_dirty([[1,2,3]], dirty={(0,0):0, (0,1):0}) with cellzero=0
the expected result is [[3]] (but was [[2]] because it starts
removing 1 in [1,2,3], then 3 in [2,3], instead of removing
1 and 2 in [1,2,3]
- same test with non zero cell
basically, this doesn't assume the key traversal is ordered in dirty
additionaly, it use a default cellzero value (to `None`)1 parent 4d241ae commit df1fbd4
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | | - | |
| 227 | + | |
| 228 | + | |
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
0 commit comments