@@ -24,7 +24,7 @@ macro_rules! round_trip {
24
24
let mut output = Vec :: new( ) ;
25
25
let item = <$borrowed>:: from_bytes( & input) ?;
26
26
item. write_to( & mut output) ?;
27
- assert_eq!( output. as_bstr( ) , input. as_bstr( ) ) ;
27
+ assert_eq!( output. as_bstr( ) , input. as_bstr( ) , "borrowed" ) ;
28
28
29
29
let item: $owned = item. into( ) ;
30
30
output. clear( ) ;
@@ -35,12 +35,12 @@ macro_rules! round_trip {
35
35
let item = ObjectRef :: from( <$borrowed>:: from_bytes( & input) ?) ;
36
36
output. clear( ) ;
37
37
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" ) ;
39
39
40
40
let item: Object = item. into( ) ;
41
41
output. clear( ) ;
42
42
item. write_to( & mut output) ?;
43
- assert_eq!( output. as_bstr( ) , input. as_bstr( ) ) ;
43
+ assert_eq!( output. as_bstr( ) , input. as_bstr( ) , "owned" ) ;
44
44
45
45
// Test the loose serialisation -> parse chain for an object kind
46
46
let item = <$borrowed>:: from_bytes( & input) ?;
@@ -51,7 +51,7 @@ macro_rules! round_trip {
51
51
item. write_to( w) ?;
52
52
let parsed = ObjectRef :: from_loose( & output) ?;
53
53
let item2 = <$borrowed>:: try_from( parsed) . or( Err ( super :: Error :: TryFromError ) ) ?;
54
- assert_eq!( item2, item) ;
54
+ assert_eq!( item2, item, "object-ref looose" ) ;
55
55
}
56
56
Ok ( ( ) )
57
57
}
@@ -83,7 +83,8 @@ mod commit {
83
83
"commit/signed-with-encoding.txt" ,
84
84
"commit/unsigned.txt" ,
85
85
"commit/whitespace.txt" ,
86
- "commit/with-encoding.txt"
86
+ "commit/with-encoding.txt" ,
87
+ "commit/subtle.txt"
87
88
) ;
88
89
}
89
90
0 commit comments