From 0f133cfab379f57a24c0d2ddbad3c4760e8e45ea Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Fri, 2 Oct 2020 13:15:56 +0200 Subject: [PATCH] Added test for korean. --- txtlang/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/txtlang/src/lib.rs b/txtlang/src/lib.rs index fa9f619..1d0bf6d 100644 --- a/txtlang/src/lib.rs +++ b/txtlang/src/lib.rs @@ -89,6 +89,18 @@ mod tests { ); } + #[test] + fn test_korean() { + assert_eq!( + scan("朝鲜语"), + vec![Match { + language: Language::Kor, + start: 0, + end: 9, + }] + ); + } + #[test] fn test_bug_001() { assert_eq!(scan("ampersand"), vec![]);