source: freethepostcode.org/html/bin/test.rb @ 726

Last change on this file since 726 was 726, checked in by Dominic Hargreaves, 10 years ago

initial import

  • Property svn:executable set to *
File size: 405 bytes
Line 
1# Written by Paul Kustov <pavel.kustov@keble.ox.ac.uk>
2# and supplied with no licence by email, Fri, 11 Jul 2008
3
4require 'sanity_check'
5
6lines = IO.readlines("currentlist")
7
8lines.each do |line|
9 if line =~ /^#/
10   next
11 end
12 spl = line.split(" ")
13 errs = sanity_check("#{spl[2]} #{spl[3]}", spl[0].to_f, spl[1].to_f)
14 unless errs.empty?
15   print("#{line.chomp}: #{errs}\n")
16 end
17end
18
Note: See TracBrowser for help on using the repository browser.