mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 14:27:52 -04:00
I refactored the unit tests for all the demo programs to follow a different pattern that makes it simpler to add more demo tests in the future. The main thing is that correct output and generated output are now in separate directories `correct` and `test`. I have moved the test scripts from `test/test` to `./demotest` in all the langauge demo directories. This makes it simpler to clean up any stale generated files before each test run by `rm -f test/*.txt`. I stumbled across this while making the Java demo tests, and it was a better solution, so now all the other languages are consistent with the Java demo tests. In the C demo tests, I also decided to compile all the binary executables into a subdirectory `bin` that can be cleaned out before each run, to make sure there are no stale executables from an earlier run.
12 lines
736 B
Plaintext
12 lines
736 B
Plaintext
search : 2015-02-28T00:00:00.000Z
|
|
Sun : 2015-02-28T18:12:31.045Z altitude= 52.13 azimuth= 180.00
|
|
Moon : 2015-02-28T01:58:15.631Z altitude= 77.88 azimuth= 180.00
|
|
Mercury : 2015-02-28T16:31:18.940Z altitude= 42.57 azimuth= 180.00
|
|
Venus : 2015-02-28T20:03:56.711Z altitude= 63.24 azimuth= 180.00
|
|
Mars : 2015-02-28T19:52:21.643Z altitude= 62.24 azimuth= 180.00
|
|
Jupiter : 2015-02-28T04:40:04.004Z altitude= 77.29 azimuth= 180.00
|
|
Saturn : 2015-02-28T11:40:53.878Z altitude= 40.96 azimuth= 180.00
|
|
Uranus : 2015-02-28T20:20:51.246Z altitude= 65.12 azimuth= 180.00
|
|
Neptune : 2015-02-28T18:04:23.942Z altitude= 50.53 azimuth= 180.00
|
|
Pluto : 2015-02-28T14:31:39.865Z altitude= 39.51 azimuth= 180.00
|