⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testa7b.sh

📁 N元组统计程序源代码
💻 SH
字号:
################################################################################				UNIT TEST A7b FOR kocos.pl################################################################################       Test A7b  -     Checks if the program finds correct 2nd order #			co-occurrences when co-occurrence graph has zigzag form #	Input	-	test-A7.count#	Output	-	test-A7b.reqdecho "UNIT Test A7b -";echo "		For kth order co-occurrence program kocos.pl";echo "Input - 	Source file from test-A7.count";echo "Output - 	Destination file from test-A7b.reqd";echo "Test -    	Checks if the program finds correct 2nd order";echo "		co-occurrences when the co-occurrence graph has a zigzag shape"; #=============================================================================#				INPUT#=============================================================================set TestInput="test-A7.count";set Actual="test-A7b.reqd";#=============================================================================#				RUN THE PROGRAM#============================================================================= kocos.pl --literal line --order 2 $TestInput > test-A7b.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A7b.output > t1sort $Actual > t2diff -w t1 t2 > variance#=============================================================================#				RESULTS OF TESTA7b #=============================================================================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 + -