diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/charset-tests.el | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/src/charset-tests.el b/test/src/charset-tests.el new file mode 100644 index 00000000000..515a4eafe14 --- /dev/null +++ b/test/src/charset-tests.el | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | ;;; charset-tests.el --- Tests for charset.c | ||
| 2 | |||
| 3 | ;; Copyright 2017 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; This program is free software; you can redistribute it and/or modify | ||
| 6 | ;; it under the terms of the GNU General Public License as published by | ||
| 7 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 8 | ;; (at your option) any later version. | ||
| 9 | |||
| 10 | ;; This program is distributed in the hope that it will be useful, | ||
| 11 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | ;; GNU General Public License for more details. | ||
| 14 | |||
| 15 | ;; You should have received a copy of the GNU General Public License | ||
| 16 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | |||
| 18 | ;;; Code: | ||
| 19 | |||
| 20 | (require 'ert) | ||
| 21 | |||
| 22 | (ert-deftest charset-decode-char () | ||
| 23 | "Test decode-char." | ||
| 24 | (should-error (decode-char 'ascii 0.5))) | ||
| 25 | |||
| 26 | (provide 'charset-tests) | ||