Sha256: 5c2ab1f205a719e984c22879c279f68585ba1a91d87918ff3d52d0a90d803341
Contents?: true
Size: 1.19 KB
Versions: 4
Compression:
Stored size: 1.19 KB
Contents
require 'test/unit' require 'voruby/simple/sap' module TestMethods def test_simple_access assert_nothing_raised { nsa_siap = VORuby::Simple::ImageAccess.new('http://archive.noao.edu/nvo/sim/voquery.php', '23:00:00, 2:00:00', 7, nil, 30, @parser) mast_cone = VORuby::Simple::ConeSearch.new('http://archive.stsci.edu/hst/search.php', 53.084, -27.873, 0.01, nil, 30, @parser) VORuby::Simple::QueryExecutor.new([nsa_siap, mast_cone], @objectifier).results().each do |query, votable| puts "#{query.to_s()}..." votable.fields().each do |field| puts "#{field.id()}, #{field.name()}, #{field.ucd().value() if field.ucd() != nil}" end puts "\n" end } end end class LibxmlSimpleAccessTest < Test::Unit::TestCase include TestMethods def setup @objectifier = Proc.new { |query| query.marshall().votable().votable() } @parser = 'libxml' end end class RexmlSimpleAccessTest < Test::Unit::TestCase include TestMethods def setup @objectifier = Proc.new { |query| query.marshall().votable().votable() } @parser = 'rexml' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
voruby-1.1 | test/simple/unittest.rb |
voruby-1.1.1 | test/simple/unittest.rb |
voruby-1.0.1 | test/simple/unittest.rb |
voruby-1.0.2 | test/simple/unittest.rb |