imag/libimagruby/test/test_store_id_load.rb

12 lines
248 B
Ruby
Raw Normal View History

2017-01-20 09:38:06 +00:00
#!/usr/bin/env ruby
require 'fiddle'
lib = Fiddle::dlopen './target/debug/libimag_ruby.so'
Fiddle::Function::new(lib['imag_ruby_initialize'], [], Fiddle::TYPE_VOIDP).call
works = (not RStoreId.new_baseless("test").nil?)
puts "Works: #{works}"