mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-02-28 12:49:26 -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.
7 lines
416 B
Plaintext
7 lines
416 B
Plaintext
Moon horizontal position: azimuth = 274.486, altitude = 52.101
|
|
Moon check: (1.00000000, 0.00000000, 0.00000000, 2021-03-22T02:45:00.000Z)
|
|
Sun vector: (-0.08853032, -0.31939128, -0.93966315, 2021-03-22T02:45:00.000Z)
|
|
Tilt angle of sunlit side of the Moon = -108.773 degrees counterclockwise from up.
|
|
Moon magnitude = -10.27, phase angle = 84.22 degrees.
|
|
Angle between Moon and Sun as seen from Earth = 95.64 degrees.
|