 (expect []
   (no-regex (typify-args [:fish :fry])))
 
-(expect [:id "#[0-9]+"]
+(expect [:id "#^[0-9]+$"]
   (no-regex (typify-args [:id])))
 
-(expect [:id "#[0-9]+"]
+(expect [:id "#^[0-9]+$"]
   (no-regex (typify-args [:id :fish])))
 
-(expect [:id "#[0-9]+" :card-id "#[0-9]+"]
+(expect [:id "#^[0-9]+$" :card-id "#^[0-9]+$"]
   (no-regex (typify-args [:id :card-id])))
 
 

(expect "/"
  (no-regex (typify-route "/")))

(expect ["/:id" :id "#[0-9]+"]
  (no-regex (typify-route "/:id")))

(expect ["/:id/card" :id "#[0-9]+"]
  (no-regex (typify-route "/:id/card")))

(expect ["/:card-id" :card-id "#[0-9]+"]
  (no-regex (typify-route "/:card-id")))

(expect "/:fish"
  (no-regex (typify-route "/:fish")))

(expect ["/:id/tables/:card-id" :id "#[0-9]+" :card-id "#[0-9]+"]
  (no-regex (typify-route "/:id/tables/:card-id")))

;; don't try to typify route that's already typified
(expect ["/:id/:crazy-id" :crazy-id "#[0-9]+"]
  (no-regex (typify-route ["/:id/:crazy-id" :crazy-id "#[0-9]+"])))


;; TESTS FOR LET-FORM-FOR-ARG

(ns metabase.api.common.internal-test
  (:require [expectations :refer :all]
            [medley.core :as medley]
            (metabase.api.common [internal :refer :all])))

;;; TESTS FOR ROUTE-FN-NAME
