-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
;;; unidecode-test.el --- unit tests for Unidecode | ||
;; Copyright (C) 2013 sindikat | ||
;; | ||
;; Author: sindikat <sindikat at mail36 dot net> | ||
;; | ||
;; This file is not part of GNU Emacs. | ||
;; | ||
;; This file is put into public domain to the extend possible by law. | ||
;; | ||
;;; Commentary: | ||
|
||
;; | ||
|
||
;;; Code: | ||
(require 'ert) | ||
|
||
(defun unidecode-test () | ||
"Unit test Unidecode functions." | ||
(interactive) | ||
(ert "^unidecode-")) | ||
|
||
(ert-deftest unidecode-test-unidecode () | ||
"Check ..." | ||
(let ((s-original "æб¦ ") | ||
(s-decoded "aeb| ")) | ||
(let ((result (unidecode-unidecode s-original))) | ||
(should (equal result s-decoded))))) | ||
|
||
(ert-deftest unidecode-test-sanitize () | ||
"..." | ||
(let ((s-original "æб¦ ") | ||
(s-sanitized "aeb-")) | ||
(let ((result (unidecode-sanitize s-sanitized))) | ||
(should (equal result s-sanitized))))) | ||
;;; unidecode-test.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters