Add mini test example
This commit is contained in:
parent
0a25608ff0
commit
31b64c4de7
1 changed files with 11 additions and 0 deletions
11
imag-ruby/test/test_store_id_load.rb
Normal file
11
imag-ruby/test/test_store_id_load.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/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}"
|
||||
|
Loading…
Reference in a new issue