os-utils-test.scm 383 B

12345678910111213141516171819202122232425
  1. (use-modules
  2. ;; SRFI 64 for unit testing facilities
  3. (srfi srfi-64)
  4. (utils os-utils))
  5. (test-begin "os-utils-test")
  6. (test-group
  7. "path-join"
  8. (test-equal "path-join-1"
  9. "/a/b/c"
  10. (path-join "/a" "b" "c"))
  11. (test-equal "path-join-2"
  12. "/a/b/c/"
  13. (path-join "/a" "b" "c" ""))
  14. (test-equal "path-join-3"
  15. "a/b/c"
  16. (path-join "a" "b" "c")))
  17. (test-end "os-utils-test")