test1.nim 517 B

1234567891011121314151617181920212223
  1. # This is just an example to get you started. You may wish to put all of your
  2. # tests into a single file, or separate them into multiple `test1`, `test2`
  3. # etc. files (better names are recommended, just make sure the name starts with
  4. # the letter 't').
  5. #
  6. # To run these tests, simply execute `nimble test`.
  7. import
  8. os,
  9. unittest,
  10. terminal,
  11. strutils
  12. # import rainbow
  13. import shootpkg/shootfuncs
  14. test "correct welcome":
  15. check getWelcomeMessage() == "Shoot!"
  16. test "tilde":
  17. check tilde(getHomeDir()) == "~"