Add test for hash including ZWSP (#772)

* Add test for hash including ZWSP

* Run cargo fmt
This commit is contained in:
KITAITI Makoto 2020-05-17 20:53:31 +09:00 committed by GitHub
parent 3be842c653
commit 197f0d7ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,6 +442,7 @@ mod tests {
("not_a#hashtag", vec![]), ("not_a#hashtag", vec![]),
("#نرمافزار_آزاد", vec!["نرمافزار_آزاد"]), ("#نرمافزار_آزاد", vec!["نرمافزار_آزاد"]),
("[#hash in link](https://example.org/)", vec![]), ("[#hash in link](https://example.org/)", vec![]),
("#zwsp\u{200b}inhash", vec!["zwsp"]),
]; ];
for (md, mentions) in tests { for (md, mentions) in tests {