mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-09 23:48:13 -07:00
Fix tests where minor/major were mixed up
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
parent
7cb8aa33c4
commit
45d583442b
1 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ func TestImageSvgResize(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestImageGifToJpeg(t *testing.T) {
|
||||
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
i := initImage("test.gif")
|
||||
options := Options{
|
||||
Type: JPEG,
|
||||
|
|
@ -57,7 +57,7 @@ func TestImageGifToJpeg(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestImagePdfToJpeg(t *testing.T) {
|
||||
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
i := initImage("test.pdf")
|
||||
options := Options{
|
||||
Type: JPEG,
|
||||
|
|
@ -72,7 +72,7 @@ func TestImagePdfToJpeg(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestImageSvgToJpeg(t *testing.T) {
|
||||
if VipsMinorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
if VipsMajorVersion >= 8 && VipsMinorVersion > 2 {
|
||||
i := initImage("test.svg")
|
||||
options := Options{
|
||||
Type: JPEG,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue