Skip to content

Commit

Permalink
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/truffle/cexts/oily_png/test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'chunky_png'
require 'oily_png'

abort unless OilyPNG::Color.r(0x11223344) == ChunkyPNG::Color.r(0x11223344)
abort unless OilyPNG::Color.r(0x11223344) == 0x11
7 changes: 3 additions & 4 deletions test/truffle/cexts/psd_native/test.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
require 'psd'
require 'psd_native'

module PSDNative::Util
extend self
end

abort unless PSDNative::Util.clamp(40, 10, 90) == PSD::Util.clamp(40, 10, 90)
abort unless PSDNative::Util.clamp(5, 10, 90) == PSD::Util.clamp(5, 10, 90)
abort unless PSDNative::Util.clamp(100, 10, 90) == PSD::Util.clamp(100, 10, 90)
abort unless PSDNative::Util.clamp(40, 10, 90) == 40
abort unless PSDNative::Util.clamp(5, 10, 90) == 10
abort unless PSDNative::Util.clamp(100, 10, 90) == 90
1 change: 1 addition & 0 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -552,6 +552,7 @@ def cextc(cext_dir, *clang_opts)
config_src = config['src']

if config_src.start_with?('$GEM_HOME/')
abort 'You need to set $GEM_HOME' unless ENV['GEM_HOME']
src = Dir[ENV['GEM_HOME'] + config_src['$GEM_HOME'.size..-1]]
else
src = Dir[File.join(cext_dir, config_src)]

0 comments on commit db0ecae

Please sign in to comment.