Assert line trimming
This commit is contained in:
parent
016ad53a2f
commit
3bcb1f8c94
1 changed files with 2 additions and 2 deletions
|
|
@ -108,10 +108,10 @@ fn test_tags_python() {
|
|||
]
|
||||
);
|
||||
|
||||
assert_eq!(substr(source, &tags[0].line_range), " class Customer:");
|
||||
assert_eq!(substr(source, &tags[0].line_range), "class Customer:");
|
||||
assert_eq!(
|
||||
substr(source, &tags[1].line_range),
|
||||
" def age(self):"
|
||||
"def age(self):"
|
||||
);
|
||||
assert_eq!(tags[0].docs.as_ref().unwrap(), "Data about a customer");
|
||||
assert_eq!(tags[1].docs.as_ref().unwrap(), "Get the customer's age");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue