Commit 150f632
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`)
remove cellzero default value1 parent 4d241ae commit 150f632
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| |||
0 commit comments