mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-04 14:47:47 -05: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.
15 lines
560 B
Plaintext
15 lines
560 B
Plaintext
2019-06-15T09:15:32.987Z : Moon's ecliptic phase angle = 156.101 degrees.
|
|
2019-06-15T09:15:32.987Z : Moon's illuminated fraction = 95.63%.
|
|
|
|
The next 10 lunar quarters are:
|
|
2019-06-17T08:31:17.934Z : Full Moon
|
|
2019-06-25T09:47:07.624Z : Third Quarter
|
|
2019-07-02T19:16:46.550Z : New Moon
|
|
2019-07-09T10:55:28.849Z : First Quarter
|
|
2019-07-16T21:38:53.691Z : Full Moon
|
|
2019-07-25T01:18:42.697Z : Third Quarter
|
|
2019-08-01T03:12:26.152Z : New Moon
|
|
2019-08-07T17:31:35.717Z : First Quarter
|
|
2019-08-15T12:29:57.164Z : Full Moon
|
|
2019-08-23T14:56:46.202Z : Third Quarter
|