Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improved tests to cover StringReadPPM properly. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core-8-5-branch |
Files: | files | file ages | folders |
SHA1: |
3db28efe4eca83c0a506d709b4686bb9 |
User & Date: | dkf 2013-11-03 19:55:48 |
Context
2013-11-05
| ||
12:42 | Fix 426679ef7d: Having man.macros after .TH breaks rendering on OpenBSD and possibly others. check-in: a7657097 user: jan.nijtmans tags: core-8-5-branch | |
2013-11-03
| ||
19:56 | Improved tests to cover StringReadPPM properly. check-in: b172326d user: dkf tags: trunk | |
19:55 | Improved tests to cover StringReadPPM properly. check-in: 3db28efe user: dkf tags: core-8-5-branch | |
16:49 | Fix StringReadPPM function from previous commit. check-in: b810ad86 user: jan.nijtmans tags: core-8-5-branch | |
Changes
Changes to tests/imgPPM.test.
︙ | ︙ | |||
152 153 154 155 156 157 158 159 160 161 162 163 164 165 | image delete I } \ -body { I put "P5\n1103 997\n255\n" } \ -returnCodes error \ -result {truncated PPM data} eval image delete [image names] # cleanup catch {file delete test.ppm} cleanupTests return | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | image delete I } \ -body { I put "P5\n1103 997\n255\n" } \ -returnCodes error \ -result {truncated PPM data} test imgPPM-5.1 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n0 256\n255\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has dimension(s) <= 0} test imgPPM-5.2 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n-2 256\n255\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has dimension(s) <= 0} test imgPPM-5.3 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n10 0\n255\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has dimension(s) <= 0} test imgPPM-5.4 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n10 -2\n255\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has dimension(s) <= 0} test imgPPM-5.5 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n10 20\n100000\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has bad maximum intensity value 100000} test imgPPM-5.6 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n10 20\n0\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {PPM image data has bad maximum intensity value 0} test imgPPM-5.7 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n10 10\n255\nabcdef" } -returnCodes error -cleanup { image delete ppm } -result {truncated PPM data} test imgPPM-5.8 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n5 4\n255\n01234567890123456789012345678901234567890123456789012345678" } -returnCodes error -cleanup { image delete ppm } -result {truncated PPM data} test imgPPM-5.9 {StringReadPPM procedure} -setup { image create photo ppm } -body { ppm put "P6\n5 4\n150\n012345678901234567890123456789012345678901234567890123456789" list [image width ppm] [image height ppm] } -cleanup { image delete ppm } -result {5 4} eval image delete [image names] # cleanup catch {file delete test.ppm} cleanupTests return |
︙ | ︙ |