testa14b.sh

来自「N元组统计程序源代码」· Shell 代码 · 共 58 行

SH
58
字号
################################################################################				UNIT TEST A14b FOR kocos.pl################################################################################       Test A14b  -    Checks if the program finds correct 2nd order #			co-occurrences when target is /\d/ and data #			contains all weird characters#	Input	-	test-A14.count#	Output	-	test-A14b.reqdecho "UNIT Test A14b -";echo "		For kth order co-occurrence program kocos.pl";echo "Input - 	Source file from test-A14.count";echo "Output - 	Destination file from test-A14b.reqd";echo "Test -    	Checks if the program finds correct 2nd order";echo "		co-occurrences when target is /\d/ and data contains";echo "		all weird characters";#=============================================================================#				INPUT#=============================================================================set TestInput="test-A14.count";set Actual="test-A14b.reqd";#=============================================================================#				RUN THE PROGRAM#============================================================================= kocos.pl --regex test-A14.regex --order 2 $TestInput > test-A14b.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A14b.output > t1sort $Actual > t2diff -w t1 t2 > variance1#=============================================================================#				RESULTS OF TESTA14b#=============================================================================if(-z variance1) then        echo "STATUS : 	OK Test Results Match.....";else	echo "STATUS : 	ERROR Test Results don't Match....";	echo "		When Tested for --regex test-A14.regex";        cat variance1endifecho ""/bin/rm -f t1 t2 variance1 #############################################################################

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?