A library that computes the ephemerides.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

21 行
362 B

  1. #!/usr/bin/env python3
  2. import doctest
  3. from kosmorrolib import *
  4. if __name__ == "__main__":
  5. failures = 0
  6. tests = 0
  7. for module in [events, ephemerides]:
  8. (f, t) = doctest.testmod(module)
  9. failures += f
  10. tests += t
  11. if failures == 0:
  12. print("✔ All %d tests successfully passed." % tests)
  13. else:
  14. exit(1)