@@ -1748,14 +1748,14 @@ __metadata:
17481748 }
17491749
17501750 #[ test]
1751- fn test_parse_descriptor_line_conditional_long_wrapped ( ) {
1751+ fn test_parse_descriptor_line_wrapped_long_line ( ) {
17521752 let input = r#"? "@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.0"
17531753:"# ;
17541754 let result = parse_descriptor_line ( input) ;
17551755
17561756 assert ! (
17571757 result. is_ok( ) ,
1758- "Should successfully parse conditional package with long wrapped descriptor line "
1758+ "Should successfully parse long, wrapped-line descriptor"
17591759 ) ;
17601760 let ( remaining, descriptors) = result. unwrap ( ) ;
17611761 assert_eq ! ( remaining, "" ) ;
@@ -1776,8 +1776,8 @@ __metadata:
17761776 }
17771777
17781778 #[ test]
1779- fn test_parse_descriptor_line_conditional_short_no_wrap ( ) {
1780- // Test that short conditional lines still work (without newline wrap)
1779+ fn test_parse_descriptor_line_short_no_wrap ( ) {
1780+ // Test that short lines with `?` prefix still work (without newline wrap)
17811781 let input = r#"? "resolve@patch:resolve@npm%3A^1.0.0#optional!builtin<compat/resolve>":"# ;
17821782 let result = parse_descriptor_line ( input) ;
17831783
@@ -1792,7 +1792,7 @@ __metadata:
17921792 }
17931793
17941794 #[ test]
1795- fn test_parse_conditional_package_entry_long_wrapped ( ) {
1795+ fn test_parse_package_entry_long_wrapped_line ( ) {
17961796 // Test a complete package entry with the long wrapped descriptor pattern
17971797 let input = r#"? "@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.0, @babel/runtime@npm:^7.12.0"
17981798:
@@ -1807,7 +1807,7 @@ __metadata:
18071807
18081808 assert ! (
18091809 result. is_ok( ) ,
1810- "Should successfully parse complete conditional package entry with long wrapped descriptor"
1810+ "Should successfully parse complete package entry with long wrapped descriptor"
18111811 ) ;
18121812 let ( remaining, ( descriptors, package) ) = result. unwrap ( ) ;
18131813 assert_eq ! ( remaining, "" ) ;
0 commit comments