Fix tests where minor/major were mixed up

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
master
Yoan Blanc 9 years ago
parent 7cb8aa33c4
commit 45d583442b
No known key found for this signature in database
GPG Key ID: 6058CF4574298812

@ -42,7 +42,7 @@ func TestImageSvgResize(t *testing.T) {
} }
func TestImageGifToJpeg(t *testing.T) { func TestImageGifToJpeg(t *testing.T) {
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 { if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
i := initImage("test.gif") i := initImage("test.gif")
options := Options{ options := Options{
Type: JPEG, Type: JPEG,
@ -57,7 +57,7 @@ func TestImageGifToJpeg(t *testing.T) {
} }
func TestImagePdfToJpeg(t *testing.T) { func TestImagePdfToJpeg(t *testing.T) {
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 { if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
i := initImage("test.pdf") i := initImage("test.pdf")
options := Options{ options := Options{
Type: JPEG, Type: JPEG,
@ -72,7 +72,7 @@ func TestImagePdfToJpeg(t *testing.T) {
} }
func TestImageSvgToJpeg(t *testing.T) { func TestImageSvgToJpeg(t *testing.T) {
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 { if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
i := initImage("test.svg") i := initImage("test.svg")
options := Options{ options := Options{
Type: JPEG, Type: JPEG,

Loading…
Cancel
Save