📄 testa4b.sh
字号:
################################################################################ UNIT TEST A4b FOR kocos.pl################################################################################ Test A4b - Checks if the program finds correct 2nd order # co-occurrences when co-occurrence graph is a complete # bipartite of order 3 # Input - test-A4.count# Output - test-A4b.reqdecho "UNIT Test A4b -";echo " For kth order co-occurrence program kocos.pl";echo "Input - Source file from test-A4.count";echo "Output - Destination file from test-A4b.reqd";echo "Test - Checks if the program finds correct 2nd order";echo " co-occurrences when the co-occurrence graph is a complete";echo " bipartite of order 3"; #=============================================================================# INPUT#=============================================================================set TestInput="test-A4.count";set Actual="test-A4b.reqd";#=============================================================================# RUN THE PROGRAM#============================================================================= kocos.pl --literal line --order 2 $TestInput > test-A4b.output#=============================================================================# SORT THE RESULTS AND COMPARE#=============================================================================sort test-A4b.output > t1sort $Actual > t2diff -w t1 t2 > variance#=============================================================================# RESULTS OF TESTA4b#=============================================================================if(-z variance) then echo "STATUS : OK Test Results Match.....";else echo "STATUS : ERROR Test Results don't Match...."; echo " When Tested Against $Actual - "; cat varianceendifecho ""/bin/rm -f t1 t2 variance#############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -