aboutsummaryrefslogtreecommitdiffstats
path: root/test/all_ss.rb
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2017-06-12 03:37:11 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2017-06-12 03:37:11 -0400
commit8280a21a23d44aa90177e2bc041d0b8dc8556f4b (patch)
treedadef7ee085c0e990a5070bd41b6a5b98c97f4fd /test/all_ss.rb
Import Upstream version 2.7.1upstream/2.7.1
Diffstat (limited to 'test/all_ss.rb')
-rw-r--r--test/all_ss.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/all_ss.rb b/test/all_ss.rb
new file mode 100644
index 0000000..d6669ba
--- /dev/null
+++ b/test/all_ss.rb
@@ -0,0 +1,12 @@
+require 'roo'
+
+Dir.glob('test/files/*.ods').each do |fn|
+ begin
+ oo = Roo::OpenOffice.new fn
+ print "#{File.basename(fn)} "
+ puts oo.officeversion
+ rescue Zip::ZipError, Errno::ENOENT => e
+ # file is not a real .ods spreadsheet file
+ puts e.message
+ end
+end