[latex3-commits] [l3svn] branch master updated: Clearer test for md5 hash

noreply at latex-project.org noreply at latex-project.org
Tue Sep 19 10:13:23 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  38f8b26   Clearer test for md5 hash
38f8b26 is described below

commit 38f8b2633e3372087b372b5ae4f27b1162952495
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Sep 19 09:12:45 2017 +0100

    Clearer test for md5 hash
    
    This now does test XeTeX as well as the other engines, and only
    excludes the parts XeTeX really cannot (currently) do.
---
 l3kernel/testfiles/m3file001.lvt       |   29 ++++++++++++++++-------------
 l3kernel/testfiles/m3file001.xetex.tlg |    1 +
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/l3kernel/testfiles/m3file001.lvt b/l3kernel/testfiles/m3file001.lvt
index bf33a51..09007e2 100644
--- a/l3kernel/testfiles/m3file001.lvt
+++ b/l3kernel/testfiles/m3file001.lvt
@@ -141,23 +141,26 @@
   {
     \file_get_mdfive_hash:nN { filetest-utf8.txt } \l_tmpa_str
     \file_get_size:nN { filetest.txt } \l_tmpb_str
-    \sys_if_engine_xetex:F
+    % Unix line endings
+    \str_if_eq:VnTF \l_tmpa_str { 4F918CB10404DD50E3C1B9990FF54D4A }
       {
-        \int_compare:nNnTF \l_tmpb_str = { 120 }
-          {
-            % Unix line endings
-            \str_if_eq:VnTF \l_tmpa_str { 4F918CB10404DD50E3C1B9990FF54D4A }
-              \TRUE \ERROR
-          }
+        \bool_lazy_or:nnTF
+          { \sys_if_engine_xetex_p: }
+          { \int_compare_p:nNn \l_tmpb_str = { 120 } }
+          \TRUE
+          \ERROR
+      }
+      {
+        % Windows line endings
+        \str_if_eq:VnTF \l_tmpa_str { FA408C34EC7616533C50F8643B7949B6 }
           {
-            \int_compare:nNnTF \l_tmpb_str = { 123 }
-              {
-                 % Windows line endings
-                \str_if_eq:VnTF \l_tmpa_str { FA408C34EC7616533C50F8643B7949B6 }
-                  \TRUE \ERROR
-              }
+            \bool_lazy_or:nnTF
+              { \sys_if_engine_xetex_p: }
+              { \int_compare_p:nNn \l_tmpb_str = { 123 } }
+              \TRUE
               \ERROR
           }
+          { \ERROR }
       }
     \file_get_mdfive_hash:nN { NotAFile.txt } \l_tmpa_str
     \tl_show:N \l_tmpa_str
diff --git a/l3kernel/testfiles/m3file001.xetex.tlg b/l3kernel/testfiles/m3file001.xetex.tlg
index c2993cb..6d7ef42 100644
--- a/l3kernel/testfiles/m3file001.xetex.tlg
+++ b/l3kernel/testfiles/m3file001.xetex.tlg
@@ -233,6 +233,7 @@ l. ...  }
 | XeTeX does not currently provide functionality equivalent to the
 | \pdffilesize primitive.
 |...............................................
+TRUE
 > \l_tmpa_str=.
 <recently read> }
 l. ...  }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list