File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -734,8 +734,8 @@ fn should_write_trait_method_header() {
734
734
#[ test]
735
735
fn should_write_trait_method_signature( ) {
736
736
let markdown = test:: render(
737
- ~"trait i { fn a( ) ; } ");
738
- fail_unless!(str::contains(markdown, ~" \n fn a( ) "));
737
+ ~"trait i { fn a( & self ) ; } ");
738
+ fail_unless!(str::contains(markdown, ~" \n fn a( & self ) "));
739
739
}
740
740
741
741
fn write_impl(ctxt: &Ctxt, doc: doc::ImplDoc) {
@@ -773,8 +773,8 @@ fn should_write_impl_method_header() {
773
773
#[ test]
774
774
fn should_write_impl_method_signature( ) {
775
775
let markdown = test:: render(
776
- ~"impl int { fn a( ) { } } ");
777
- fail_unless!(str::contains(markdown, ~" \n fn a( ) "));
776
+ ~"impl int { fn a( & mut self ) { } } ");
777
+ fail_unless!(str::contains(markdown, ~" \n fn a( & mut self ) "));
778
778
}
779
779
780
780
fn write_type(
Original file line number Diff line number Diff line change @@ -259,9 +259,9 @@ fn get_method_sig(
259
259
260
260
#[test]
261
261
fn should_add_trait_method_sigs() {
262
- let doc = test::mk_doc(~" trait i { fn a<T >( ) -> int; } ");
262
+ let doc = test::mk_doc(~" trait i { fn a<T >( & mut self ) -> int; } ");
263
263
fail_unless!(doc.cratemod().traits()[0].methods[0].sig
264
- == Some(~" fn a<T >( ) -> int"));
264
+ == Some(~" fn a<T >( & mut self ) -> int"));
265
265
}
266
266
267
267
fn fold_impl(
@@ -318,9 +318,9 @@ fn should_add_impl_self_ty() {
318
318
319
319
#[test]
320
320
fn should_add_impl_method_sigs() {
321
- let doc = test::mk_doc(~" impl int { fn a<T >( ) -> int { fail!( ) } } ");
321
+ let doc = test::mk_doc(~" impl int { fn a<T >( & self ) -> int { fail!( ) } } ");
322
322
fail_unless!(doc.cratemod().impls()[0].methods[0].sig
323
- == Some(~" fn a<T >( ) -> int"));
323
+ == Some(~" fn a<T >( & self ) -> int"));
324
324
}
325
325
326
326
fn fold_type(
You can’t perform that action at this time.
0 commit comments