]> code.delx.au - gnu-emacs/blobdiff - test/automated/print-tests.el
Doc fix for font-lock-remove-keywords
[gnu-emacs] / test / automated / print-tests.el
index 2761109d2d5aa8f9bf61b6d4f4b286ff471bbf4e..1abfa53581c454966e6976251622e525d64dec41 100644 (file)
@@ -1,6 +1,6 @@
 ;;; print-tests.el --- tests for src/print.c         -*- lexical-binding: t; -*-
 
-;; Copyright (C) 2014-2015 Free Software Foundation, Inc.
+;; Copyright (C) 2014-2016 Free Software Foundation, Inc.
 
 ;; This file is part of GNU Emacs.
 
 
 (require 'ert)
 
+(ert-deftest print-hex-backslash ()
+  (should (string= (let ((print-escape-multibyte t)
+                         (print-escape-newlines t))
+                     (prin1-to-string "\u00A2\ff"))
+                   "\"\\x00a2\\ff\"")))
+
 (ert-deftest terpri ()
   (should (string= (with-output-to-string
                      (princ 'abc)