File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,3 @@ csv = "1.1"
1717
1818[dev-dependencies ]
1919proptest = { workspace = true }
20- insta = " 1.39"
Original file line number Diff line number Diff line change @@ -76,7 +76,20 @@ mod tests {
7676 } ,
7777 ] ;
7878 let output = formatter. format ( & matches) ;
79- insta:: assert_snapshot!( output) ;
79+ // Check that the output contains the expected data
80+ assert ! ( output. contains( "src/main.rs" ) ) ;
81+ assert ! ( output. contains( "5" ) ) ;
82+ assert ! ( output. contains( "3" ) ) ;
83+ assert ! ( output. contains( "TODO" ) ) ;
84+ assert ! ( output. contains( "TODO: implement feature" ) ) ;
85+ assert ! ( output. contains( "src/lib.rs" ) ) ;
86+ assert ! ( output. contains( "10" ) ) ;
87+ assert ! ( output. contains( "1" ) ) ;
88+ assert ! ( output. contains( "FIXME" ) ) ;
89+ assert ! ( output. contains( "FIXME: temporary workaround" ) ) ;
90+ // Ensure it's a table format (contains borders)
91+ assert ! ( output. contains( "+" ) ) ;
92+ assert ! ( output. contains( "|" ) ) ;
8093 }
8194
8295 #[ test]
You can’t perform that action at this time.
0 commit comments