Sha256: a3858284ccbd547a50d97b4819eb098e5702d08bd9f8d591e663b1413aadbd2c
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'tsp_runner' filename = File.join(File.dirname(__FILE__), '..', 'data', 'input', 'sample_10.csv') begin runner = TspRunner::Runner.new(ARGV.join(' '), filename) runner.run(5) distance = runner.validate!('San Francisco') $stdout.puts("Success: #{distance} km") rescue TspRunner::Runner::BaseError => error $stderr.puts error.message exit(1) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tsp_runner-0.1.0 | exe/tsp_runner |