Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator trips.txt files are invalid #332

Open
GoogleCodeExporter opened this issue Mar 3, 2016 · 2 comments
Open

Validator trips.txt files are invalid #332

GoogleCodeExporter opened this issue Mar 3, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run java/Transxchange2GoogleTransit/validator.sh
2. Notice that trips.txt differ
3. Examine ValidatorFiles/val1/trips.txt and 
ValidatorFiles/ref1/20040922/trips.txt (and for val2 and ref2, val3 and ref3). 
Note how the reference trips.txt are invalid as they have more columns than 
they should as they are not correctly quoted. Note how the 
 current values are more correct as they are correctly quoted.

What is the expected output?
Files ValidatorFiles/val1/trips.txt and ValidatorFiles/ref1/20040922/trips.txt 
are identical
Files ValidatorFiles/val2/trips.txt and ValidatorFiles/ref2/20040922/trips.txt 
are identical
Files ValidatorFiles/val3/trips.txt and ValidatorFiles/ref3/20040301/trips.txt 
are identical
What do you see instead?
Files ValidatorFiles/val1/trips.txt and ValidatorFiles/ref1/20040922/trips.txt 
differ
Files ValidatorFiles/val2/trips.txt and ValidatorFiles/ref2/20040922/trips.txt 
differ
Files ValidatorFiles/val3/trips.txt and ValidatorFiles/ref3/20040301/trips.txt 
differ

What version of the product are you using? On what operating system?
I am using trunk with a few patches applied, the most recent revision I have is 
1671. I haven't made any changes to the files which are incorrect.
$ uname -a
Linux grapevine.cl.cam.ac.uk 2.6.38-15-generic #60-Ubuntu SMP Tue May 22 
11:28:40 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.04
Release:    11.04
Codename:   natty


Please provide any additional information below.

This has probably been the case for a while, I attach a patch to alter 
validate.sh so that it doesn't produce output for files which are the same as 
this way the files which are different become much more visible.

Original issue reported on code.google.com by scottish...@googlemail.com on 8 Jun 2012 at 9:43

Attachments:

@GoogleCodeExporter
Copy link
Author

Attaching a patch to fix the reference files to have valid csv and a patch to 
make sure that trailing whitespace is not left on route descriptions so that it 
doesn't end up in the csv.

Original comment by scottish...@googlemail.com on 8 Jun 2012 at 9:54

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by bdfer...@google.com on 26 Sep 2014 at 4:30

  • Added labels: App-Transxchange2GoogleTransit, Language-Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant