📄 testa11c.sh
字号:
################################################################################ UNIT TEST A11c FOR kocos.pl################################################################################ Test A11c - Checks if the program finds correct 3rd order # co-occurrences when target word is /\./ # Input - test-A11.count# Output - test-A11c.reqdecho "UNIT Test A11c -";echo " For kth order co-occurrence program kocos.pl";echo "Input - Source file from test-A11.count";echo "Output - Destination file from test-A11c.reqd";echo "Test - Checks if the program finds correct 3rd order";echo " co-occurrences when the target word is /\./";#=============================================================================# INPUT#=============================================================================set TestInput="test-A11.count";set Actual="test-A11c.reqd";#=============================================================================# RUN THE PROGRAM#============================================================================= kocos.pl --regex test-A11.regex --order 3 $TestInput > test-A11c.output#=============================================================================# SORT THE RESULTS AND COMPARE#=============================================================================sort test-A11c.output > t1sort $Actual > t2diff -w t1 t2 > variance1#=============================================================================# RESULTS OF TESTA11c#=============================================================================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-A11.regex "; cat variance1endifecho ""/bin/rm -f t1 t2 variance1 #############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -