use use_remix::{RemixRouteKind, RemixRoutePath, RemixVersionFamily};
fn main() -> Result<(), use_remix::RemixNameError> {
let route = RemixRoutePath::new("/products/$productId")?;
assert_eq!(route.as_str(), "/products/$productId");
assert!(RemixRouteKind::IndexRoute.is_index_route());
assert_eq!(RemixVersionFamily::Remix2.as_str(), "remix2");
Ok(())
}