Skip to content

Commit 46e0224

Browse files
committed
test polishing for vips-7.34
1 parent 81e52af commit 46e0224

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
diff-lcs (1.1.3)
4+
diff-lcs (1.2.4)
55
git (1.2.5)
66
jeweler (1.8.4)
77
bundler (~> 1.0)
88
git (>= 1.2.5)
99
rake
1010
rdoc
11-
json (1.7.5)
12-
rake (0.9.2.2)
13-
rdoc (3.12)
11+
json (1.7.7)
12+
rake (10.0.4)
13+
rdoc (3.12.2)
1414
json (~> 1.4)
15-
rspec (2.11.0)
16-
rspec-core (~> 2.11.0)
17-
rspec-expectations (~> 2.11.0)
18-
rspec-mocks (~> 2.11.0)
19-
rspec-core (2.11.1)
20-
rspec-expectations (2.11.3)
21-
diff-lcs (~> 1.1.3)
22-
rspec-mocks (2.11.3)
15+
rspec (2.13.0)
16+
rspec-core (~> 2.13.0)
17+
rspec-expectations (~> 2.13.0)
18+
rspec-mocks (~> 2.13.0)
19+
rspec-core (2.13.1)
20+
rspec-expectations (2.13.0)
21+
diff-lcs (>= 1.1.3, < 2.0)
22+
rspec-mocks (2.13.1)
2323

2424
PLATFORMS
2525
ruby

spec/vips/colour_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,12 @@
113113

114114
it "should convert a float image to rad" do
115115
im = @image.srgb_to_xyz.float_to_rad
116-
im.vtype.should == :XYZ
117116
im.coding.should == :RAD
118117
im.band_fmt.should == :UCHAR
119118
end
120119

121120
it "should convert a rad image to float" do
122121
im = @image.srgb_to_xyz.float_to_rad.rad_to_float
123-
im.vtype.should == :XYZ
124122
im.coding.should == :NONE
125123
im.band_fmt.should == :FLOAT
126124
end
@@ -170,13 +168,14 @@
170168
im = VIPS::Image.new(sample('icc.jpg').to_s)
171169
im2 = im.icc_import_embedded(:RELATIVE_COLORIMETRIC)
172170

173-
im2.should match_sha1('274ab0412caf3f578ff5633c357206168e7aae84')
171+
im2.should match_sha1('c1d2a147be14e9ff615396bf040202cdd4c3b9d1')
174172
end
175173

176174
it "should import an embedded icc profile and then export using an external icc profile" do
177175
im = VIPS::Image.new(sample('icc.jpg').to_s)
178176
im2 = im.icc_import_embedded(:RELATIVE_COLORIMETRIC)
179177
im3 = im2.icc_export_depth(8, sample('lcd.icc').to_s, :RELATIVE_COLORIMETRIC)
178+
180179
im3.should match_sha1('cf1d8ff608231a13b70d938f00e88dd924e83bc8')
181180
end
182181

@@ -188,7 +187,7 @@
188187
b = im2.srgb_to_xyz.xyz_to_lab
189188
diff = a.de_from_lab(b).max
190189

191-
diff.should < 2
190+
diff.should < 3
192191
end
193192

194193
#it "should transform an image using an import and an export icc profile (Image#icc_transform)"

0 commit comments

Comments
 (0)