summaryrefslogtreecommitdiff
path: root/libimagruby/test/test_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'libimagruby/test/test_ruby.rb')
-rw-r--r--libimagruby/test/test_ruby.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/libimagruby/test/test_ruby.rb b/libimagruby/test/test_ruby.rb
index 9b08859..1c777a1 100644
--- a/libimagruby/test/test_ruby.rb
+++ b/libimagruby/test/test_ruby.rb
@@ -30,6 +30,31 @@ end
puts "---"
+[
+ :RImag,
+ :RStoreId,
+ :RStoreHandle,
+ :RFileLockEntryHandle,
+ :REntryHeader,
+ :REntryContent,
+ :RImagError,
+ :RImagObjDoesNotExistError,
+ :RImagStoreError,
+ :RImagStoreWriteError,
+ :RImagStoreReadError,
+ :RImagEntryError,
+ :RImagEntryHeaderError,
+ :RImagEntryHeaderReadError,
+ :RImagEntryHeaderWriteError,
+ :RImagTypeError,
+].each do |sym|
+ if Kernel.const_defined? sym
+ RImag.info "Exists: #{sym}"
+ else
+ RImag.error "#{sym} not defined"
+ end
+end
+
works "RStoreId.new_baseless", (not RStoreId.new_baseless("test").nil?)
works "RStoreHandle.respond_to? :new", (RStoreHandle.respond_to? :new)