simonpoole / OpeningHoursParser

Parser for string values according to the OSM opening hours specification
MIT License
32 stars 12 forks source link

Add individual testing for testing from System.in #61

Closed goodudetheboy closed 3 years ago

goodudetheboy commented 3 years ago

I added an extra form of testing for OpeningHoursParser. Individual testing receives input directly from System.in for on-the-fly parsing. To use this test, run gradle individualTesting for non-strict mode or gradle individualTestingStrict for strict mode.

For best aesthetic, use gradle individualTesting--console=plain for non-strict mode or gradle individualTestingStrict --console=plain for strict mode. It removes the progress bar from gradle, and looks better I guess.

goodudetheboy commented 3 years ago

I think this test might be useful if we just want to have a fast look at the parse result from an input string, directly from the terminal.

simonpoole commented 3 years ago

Changes added according to your reviews.

Could you rebase on current master (there seems to be some weird commit history that needs cleaning up) and I'll merge.

goodudetheboy commented 3 years ago

I have rebased in 51f38a02892aba9e5ee9407e463459dc79955851 and cleaned up some files in a921da4f0fc8073feb813b8ff539873512749f0c, so my current head should be even with master.

simonpoole commented 3 years ago

Thanks!