[latex3-commits] [git/LaTeX3-latex3-latex2e] callbacks: Dort callbacks in test output (5b8e86ef)

Marcel Fabian Krüger tex at 2krueger.de
Fri Jan 10 17:09:30 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : callbacks
Link       : https://github.com/latex3/latex2e/commit/5b8e86ef6417efa6824ebd1ee83e676a48158238

>---------------------------------------------------------------

commit 5b8e86ef6417efa6824ebd1ee83e676a48158238
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Jan 10 17:09:30 2020 +0100

    Dort callbacks in test output


>---------------------------------------------------------------

5b8e86ef6417efa6824ebd1ee83e676a48158238
 base/testfiles/tlb-callbacks-001.luatex.tlg |  2 +-
 base/testfiles/tlb-callbacks-001.lvt        | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/base/testfiles/tlb-callbacks-001.luatex.tlg b/base/testfiles/tlb-callbacks-001.luatex.tlg
index 593250c4..a670aa4d 100644
--- a/base/testfiles/tlb-callbacks-001.luatex.tlg
+++ b/base/testfiles/tlb-callbacks-001.luatex.tlg
@@ -1,5 +1,5 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
  LuaTeX Callback test
-+ page_order_index
 + glyph_info
++ page_order_index
diff --git a/base/testfiles/tlb-callbacks-001.lvt b/base/testfiles/tlb-callbacks-001.lvt
index 223edf25..864a49ac 100644
--- a/base/testfiles/tlb-callbacks-001.lvt
+++ b/base/testfiles/tlb-callbacks-001.lvt
@@ -20,16 +20,23 @@
  expected_user_callbacks['luaotfload.resolve_font']=1
  expected_user_callbacks['luaotfload.patch_font']=1
 %
+  local missing = {}
   for i,_ in pairs(callback.list()) do
     if  i \string~= 'char_exists' and luatexbase.callbacktypes[i] == nil then
-      texio.write_nl("- " .. i)
+      missing[\csstring\#missing + 1] = "- " .. i
+      missing[\csstring\#missing + 1] = "- " .. i
     end
   end
+  table.sort(missing)
+  texio.write_nl(table.concat(missing, '\string\n'))
+  local additional = {}
   for i,_ in pairs(luatexbase.callbacktypes) do
     if callback.list()[i] == nil and expected_user_callbacks[i] ==nil then
-      texio.write_nl("+ " .. i)
+      additional[\csstring\#additional + 1] = "+ " .. i
     end
   end
+  table.sort(additional)
+  texio.write_nl(table.concat(additional, '\string\n'))
 }
 
 \END





More information about the latex3-commits mailing list