WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This is a test string for get_formatted_docs function. You are typing a long sentence for testing. What a nice, long sentence!",
485
+
));
486
+
let indent = 4;
487
+
488
+
let result = get_formatted_docs(input, indent);
489
+
let expected = String::from(
490
+
" \"\"\"\n This is a test string for get_formatted_docs function. You are typing a long sentence \n for testing. What a nice, long sentence!\n\"\"\"\n",
491
+
);
492
+
493
+
assert_eq!(result, expected)
494
+
}
495
+
496
+
#[test]
497
+
fntest_get_formatted_docs_utf8(){
498
+
let input = Some(String::from(
499
+
"get_formatted_docs 함수 테스트를 위한 문장입니다. 테스트를 위해 긴 문장을 입력하는 중 입니다. テストのために長い文章を入力しているところです。なんて素敵な長文です!",
500
+
));
501
+
let indent = 4;
502
+
503
+
let result = get_formatted_docs(input, indent);
504
+
let expected = String::from(
505
+
" \"\"\"\n get_formatted_docs 함수 테스트를 위한 문장입니다. 테스트를 위해 \n 긴 문장을 입력하는 중 입니다. テストのために長い文章を入力しているところです。なんて素敵な長文です!\n\"\"\"\n",
0 commit comments