From 478d1aadf952017c3fd1b96dbb4f02c119bae8ff Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Thu, 16 Jun 2022 18:21:11 +0800 Subject: [PATCH] :memo: update test/hexdump.nas test/md5compare.nas --- test/hexdump.nas | 17 ++++++++++++++--- test/md5compare.nas | 18 +++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/test/hexdump.nas b/test/hexdump.nas index f52ba46..67f7d5a 100644 --- a/test/hexdump.nas +++ b/test/hexdump.nas @@ -16,16 +16,23 @@ foreach(var i;hex_num) # read file var s=func(){ var filename=[ - "nasal.h", + "LICENSE", "main.cpp", + "makefile", "nasal_ast.h", "nasal_builtin.h", "nasal_codegen.h", + "nasal_dbg.h", + "nasal_err.h", "nasal_gc.h", "nasal_import.h", "nasal_lexer.h", + "nasal_opt.h", "nasal_parse.h", "nasal_vm.h", + "nasal.ebnf", + "nasal.h", + "README.md" ]; var ret=""; foreach(var elem;filename) @@ -42,8 +49,12 @@ var hex_index=[0,0,0,0]; # print binary in text format var textprint=func(index){ var info=''; - for(var i=index-cnt;i=128)?'.':chr(s[i]); + else + for(var i=index-cnt;i