File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,10 +246,10 @@ pub fn test_implicit_inputs_hardcoded_files() {
246246 assert ! ( matches!( initial. listing[ 0 ] , WorkDirItem :: Dirent ( _) ) ) ;
247247 assert ! ( matches!( initial. listing[ 1 ] , WorkDirItem :: Dirent ( _) ) ) ;
248248 if let WorkDirItem :: Dirent ( dirent) = & initial. listing [ 0 ] {
249- assert_eq ! ( dirent. entryname, "load.py" ) ;
249+ assert_eq ! ( dirent. entryname, Some ( "load.py" . to_string ( ) ) ) ;
250250 }
251251 if let WorkDirItem :: Dirent ( dirent) = & initial. listing [ 1 ] {
252- assert_eq ! ( dirent. entryname, "file.txt" ) ;
252+ assert_eq ! ( dirent. entryname, Some ( "file.txt" . to_string ( ) ) ) ;
253253 assert_eq ! ( dirent. entry, Entry :: Source ( "$(inputs.file_txt)" . into( ) ) ) ;
254254 }
255255 } else {
Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ pub fn tool_create_test_inputs_outputs() {
8080 assert ! ( matches!( iwdr. listing[ 1 ] , WorkDirItem :: Dirent ( _) ) ) ;
8181
8282 if let WorkDirItem :: Dirent ( dirent) = & iwdr. listing [ 0 ] {
83- assert_eq ! ( dirent. entryname, script) ;
83+ assert_eq ! ( dirent. entryname, Some ( script) ) ;
8484 }
8585 if let WorkDirItem :: Dirent ( dirent) = & iwdr. listing [ 1 ] {
86- assert_eq ! ( dirent. entryname, input) ;
86+ assert_eq ! ( dirent. entryname, Some ( input) ) ;
8787 }
8888 } else {
8989 panic ! ( "Not an InitialWorkDirRequirement" )
@@ -394,7 +394,7 @@ pub fn test_shell_script() {
394394 assert_eq ! ( tool. requirements. len( ) , 1 ) ;
395395 if let Requirement :: InitialWorkDirRequirement ( iwdr) = & & tool. requirements [ 0 ] {
396396 if let WorkDirItem :: Dirent ( dirent) = & iwdr. listing [ 0 ] {
397- assert_eq ! ( dirent. entryname, "./script.sh" ) ;
397+ assert_eq ! ( dirent. entryname, Some ( "./script.sh" . to_string ( ) ) ) ;
398398 }
399399 } else {
400400 panic ! ( "Not an InitialWorkDirRequirement" )
You can’t perform that action at this time.
0 commit comments