Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
corpix authored Jan 30, 2023
1 parent 2556f71 commit 008ba98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nix/racket2nix-test.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

(define suite (begin
(test-suite "racket2nix"
(test-equal? "github-url->git-url turns github://.*/branch into git://.*#branch"
(test-equal? "github-url->git-url turns github://.*/branch into https://.*#branch"
(github-url->git-url "github://github.com/mordae/racket-systemd/master")
"git://github.com/mordae/racket-systemd.git#master")
"https://github.com/mordae/racket-systemd.git#master")
(test-not-false "github-url? detects github:// URL"
(github-url? "github://github.com/mordae/racket-systemd/master"))
(test-equal? "url-fallback-rev->url-rev-path tolerates github:// with trailing slash"
Expand All @@ -18,7 +18,7 @@
"github://github.com/stchang/parsack/master/"
"b45f0f5ed5f8dd3f1ccebaaec3204b27032843c6")])
url)
"git://github.com/stchang/parsack.git")
"https://github.com/stchang/parsack.git")
(test-equal? "github-url->git-url puts the .git in the right place when path query and no trailing slash"
(github-url->git-url "git://github.com/rmculpepper/binaryio?path=binaryio")
"git://github.com/rmculpepper/binaryio.git?path=binaryio"))))
(github-url->git-url "https://github.com/rmculpepper/binaryio?path=binaryio")
"https://github.com/rmculpepper/binaryio.git?path=binaryio"))))

0 comments on commit 008ba98

Please sign in to comment.