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

📄 testa5c.sh

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