@@ -24,7 +24,7 @@ macro_rules! round_trip {
2424 let mut output = Vec :: new( ) ;
2525 let item = <$borrowed>:: from_bytes( & input) ?;
2626 item. write_to( & mut output) ?;
27- assert_eq!( output. as_bstr( ) , input. as_bstr( ) ) ;
27+ assert_eq!( output. as_bstr( ) , input. as_bstr( ) , "borrowed" ) ;
2828
2929 let item: $owned = item. into( ) ;
3030 output. clear( ) ;
@@ -35,12 +35,12 @@ macro_rules! round_trip {
3535 let item = ObjectRef :: from( <$borrowed>:: from_bytes( & input) ?) ;
3636 output. clear( ) ;
3737 item. write_to( & mut output) ?;
38- assert_eq!( output. as_bstr( ) , input. as_bstr( ) ) ;
38+ assert_eq!( output. as_bstr( ) , input. as_bstr( ) , "object-ref" ) ;
3939
4040 let item: Object = item. into( ) ;
4141 output. clear( ) ;
4242 item. write_to( & mut output) ?;
43- assert_eq!( output. as_bstr( ) , input. as_bstr( ) ) ;
43+ assert_eq!( output. as_bstr( ) , input. as_bstr( ) , "owned" ) ;
4444
4545 // Test the loose serialisation -> parse chain for an object kind
4646 let item = <$borrowed>:: from_bytes( & input) ?;
@@ -51,7 +51,7 @@ macro_rules! round_trip {
5151 item. write_to( w) ?;
5252 let parsed = ObjectRef :: from_loose( & output) ?;
5353 let item2 = <$borrowed>:: try_from( parsed) . or( Err ( super :: Error :: TryFromError ) ) ?;
54- assert_eq!( item2, item) ;
54+ assert_eq!( item2, item, "object-ref looose" ) ;
5555 }
5656 Ok ( ( ) )
5757 }
@@ -83,7 +83,8 @@ mod commit {
8383 "commit/signed-with-encoding.txt" ,
8484 "commit/unsigned.txt" ,
8585 "commit/whitespace.txt" ,
86- "commit/with-encoding.txt"
86+ "commit/with-encoding.txt" ,
87+ "commit/subtle.txt"
8788 ) ;
8889}
8990
0 commit comments