@@ -12,7 +12,7 @@ fn line_doc_comments() {
1212fn test_block_doc_comment_1 ( ) {
1313 with_default_session_globals ( || {
1414 let comment = "\n * Test \n ** Test\n * Test\n " ;
15- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( comment) , CommentKind :: Block ) ;
15+ let stripped = beautify_doc_string ( Symbol :: intern ( comment) ) ;
1616 assert_eq ! ( stripped, " Test \n * Test\n Test" ) ;
1717 } )
1818}
@@ -21,7 +21,7 @@ fn test_block_doc_comment_1() {
2121fn test_block_doc_comment_2 ( ) {
2222 with_default_session_globals ( || {
2323 let comment = "\n * Test\n * Test\n " ;
24- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( comment) , CommentKind :: Block ) ;
24+ let stripped = beautify_doc_string ( Symbol :: intern ( comment) ) ;
2525 assert_eq ! ( stripped, " Test\n Test" ) ;
2626 } )
2727}
@@ -30,21 +30,21 @@ fn test_block_doc_comment_2() {
3030fn test_block_doc_comment_3 ( ) {
3131 with_default_session_globals ( || {
3232 let comment = "\n let a: *i32;\n *a = 5;\n " ;
33- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( comment) , CommentKind :: Block ) ;
33+ let stripped = beautify_doc_string ( Symbol :: intern ( comment) ) ;
3434 assert_eq ! ( stripped, " let a: *i32;\n *a = 5;" ) ;
3535 } )
3636}
3737
3838#[ test]
3939fn test_line_doc_comment ( ) {
4040 with_default_session_globals ( || {
41- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( " test" ) , CommentKind :: Line ) ;
41+ let stripped = beautify_doc_string ( Symbol :: intern ( " test" ) ) ;
4242 assert_eq ! ( stripped, " test" ) ;
43- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( "! test" ) , CommentKind :: Line ) ;
44- assert_eq ! ( stripped, " test" ) ;
45- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( "test" ) , CommentKind :: Line ) ;
46- assert_eq ! ( stripped, "test" ) ;
47- let stripped = strip_doc_comment_decoration ( Symbol :: intern ( "!test" ) , CommentKind :: Line ) ;
43+ let stripped = beautify_doc_string ( Symbol :: intern ( "! test" ) ) ;
44+ assert_eq ! ( stripped, "! test" ) ;
45+ let stripped = beautify_doc_string ( Symbol :: intern ( "test" ) ) ;
4846 assert_eq ! ( stripped, "test" ) ;
47+ let stripped = beautify_doc_string ( Symbol :: intern ( "!test" ) ) ;
48+ assert_eq ! ( stripped, "!test" ) ;
4949 } )
5050}
0 commit comments