Skip to content

Commit bcecb0d

Browse files
committed
Add todo
1 parent 3fd4121 commit bcecb0d

File tree

1 file changed

+37
-0
lines changed
  • turbopack/crates/turbopack-core/src/resolve

1 file changed

+37
-0
lines changed

turbopack/crates/turbopack-core/src/resolve/parse.rs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,43 @@ mod tests {
889889
Pattern::Constant(rcstr!("/file")),
890890
]))
891891
);
892+
893+
// TODO see parse_concatenation_pattern
894+
// assert_eq!(
895+
// Request::Alternatives {
896+
// requests: vec![
897+
// Request::Module {
898+
// module: Pattern::Concatenation(vec![
899+
// Pattern::Constant(rcstr!("prefix")),
900+
// Pattern::Dynamic,
901+
// Pattern::Constant(rcstr!("suffix")),
902+
// ]),
903+
// path: rcstr!("subpath").into(),
904+
// query: rcstr!(""),
905+
// fragment: rcstr!(""),
906+
// }
907+
// .resolved_cell(),
908+
// Request::Module {
909+
// module: Pattern::Concatenation(vec![
910+
// Pattern::Constant(rcstr!("prefix")),
911+
// Pattern::Dynamic,
912+
// ]),
913+
// path: Pattern::Concatenation(vec![
914+
// Pattern::Dynamic,
915+
// Pattern::Constant(rcstr!("suffix/subpath")),
916+
// ]),
917+
// query: rcstr!(""),
918+
// fragment: rcstr!(""),
919+
// }
920+
// .resolved_cell()
921+
// ]
922+
// },
923+
// Request::parse_ref(Pattern::Concatenation(vec![
924+
// Pattern::Constant(rcstr!("prefix")),
925+
// Pattern::Dynamic,
926+
// Pattern::Constant(rcstr!("suffix/subpath")),
927+
// ]))
928+
// );
892929
}
893930

894931
#[test]

0 commit comments

Comments
 (0)