File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -400,6 +400,14 @@ where
400
400
}
401
401
}
402
402
403
+ impl IntoOutputPredicate < predicates:: ord:: EqPredicate < & ' static [ u8 ] > > for & ' static [ u8 ] {
404
+ type Predicate = predicates:: ord:: EqPredicate < & ' static [ u8 ] > ;
405
+
406
+ fn into_output ( self ) -> Self :: Predicate {
407
+ predicates:: ord:: eq ( self )
408
+ }
409
+ }
410
+
403
411
impl IntoOutputPredicate < predicates:: str:: Utf8Predicate < predicates:: str:: DifferencePredicate > >
404
412
for & ' static str
405
413
{
@@ -466,6 +474,12 @@ mod test {
466
474
assert ! ( pred. eval( b"Hello" as & [ u8 ] ) ) ;
467
475
}
468
476
477
+ #[ test]
478
+ fn into_output_from_bytes ( ) {
479
+ let pred = convert_output ( b"Hello" as & [ u8 ] ) ;
480
+ assert ! ( pred. eval( b"Hello" as & [ u8 ] ) ) ;
481
+ }
482
+
469
483
#[ test]
470
484
fn into_output_from_str ( ) {
471
485
let pred = convert_output ( "Hello" ) ;
You can’t perform that action at this time.
0 commit comments