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

📄 testa13c.sh

📁 N元组统计程序源代码
💻 SH
字号:
################################################################################			UNIT TEST A13c FOR kocos.pl################################################################################       Test A13c  -    Checks if the program finds correct 3rd order #			co-occurrences when data contains punctuations #	Input	-	test-A13.count#	Output	-	test-A13c.reqdecho "UNIT Test A13c -";echo "		For kth order co-occurrence program kocos.pl";echo "Input - 	Source file from test-A13.count";echo "Output - 	Destination file from test-A13c.reqd";echo "Test -    	Checks if the program finds correct 3rd order";echo "		co-occurrences when the data contains punctuations";#=============================================================================#				INPUT#=============================================================================set TestInput="test-A13.count";set Actual="test-A13c.reqd";#=============================================================================#				RUN THE PROGRAM#============================================================================= kocos.pl --literal mahanta --order 3 $TestInput > test-A13c1.output kocos.pl --regex test-A13.regex --order 3 $TestInput > test-A13c2.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A13c1.output > t1sort $Actual > t2diff -w t1 t2 > variance1sort test-A13c2.output > t1diff -w t1 t2 > variance2#=============================================================================#				RESULTS OF TESTA13c#=============================================================================if(-z variance1 && -z variance2) then        echo "STATUS : 	OK Test Results Match.....";else	echo "STATUS : 	ERROR Test Results don't Match....";        echo "		When Tested for --literal mahanta ";        cat variance1	echo "          When Tested for --regex test-A13.regex ";        cat variance2endifecho ""/bin/rm -f t1 t2 variance1 variance2#############################################################################

⌨️ 快捷键说明

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