#lang scheme (require "checks.ss" "../planet.ss" planet/util) (provide test-planet) (define test-planet (test-suite "planet.ss" (test-suite "this-package-version-symbol" (test-case "here" (check-equal? (this-package-version-symbol) (string->symbol (format "~a/~a:~a:~a" (this-package-version-owner) (regexp-replace "\\.plt$" (this-package-version-name) "") (this-package-version-maj) (this-package-version-min))))) (test-case "here/there" (check-equal? (this-package-version-symbol there) (string->symbol (format "~a/~a:~a:~a/there" (this-package-version-owner) (regexp-replace "\\.plt$" (this-package-version-name) "") (this-package-version-maj) (this-package-version-min))))))))