Commit 39a345a
Benjamin Russell
Fix Ape Tag Bugs (#112)
**Description**: There's a bug in Ape integration tests - the temp file was being loaded as an mp3. I have no idea *why* the tests weren't failing, but anyways, upon fixing that issue, two Ape tests failed:
* WriteStandardPictures
* Ape tag class wasn't limiting the size of the binary tags
* Fixed by adding a parameter back to the subarray method that limits the size of the binary data
* Standard picture tests were assuming mimetype would be written correctly for all formats
* Fixed by allowing application/octet-stream as a valid test mimetype for the non-picture picture
* WriteExtendedTags
* Combined tag class was erroneously accepting NaN from empty tags as valid values for replaygain properties
* Fixed by changing the logic for choosing which tag to use for combined tag reading
* Fixing bug with ape tag integration test
* Fix a bug in combined tag that broke probably more things than expected1 parent 4bfb546 commit 39a345a
4 files changed
Lines changed: 35 additions & 42 deletions
File tree
- src
- ape
- test-integration
- utilities
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
433 | 435 | | |
434 | | - | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 7 | + | |
17 | 8 | | |
| 9 | + | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
| |||
140 | 132 | | |
141 | 133 | | |
142 | 134 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
156 | 146 | | |
157 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
158 | 151 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 152 | + | |
| 153 | + | |
163 | 154 | | |
164 | | - | |
165 | | - | |
166 | | - | |
| 155 | + | |
167 | 156 | | |
168 | 157 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
176 | 167 | | |
177 | 168 | | |
178 | 169 | | |
| |||
0 commit comments