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

📄 testa12a.sh

📁 N元组统计程序源代码
💻 SH
字号:
################################################################################				UNIT TEST A12a FOR kocos.pl################################################################################       Test A12a  -    Checks if the program finds correct 1st order #			co-occurrences when target word is /nA$/ in#			Hindi transliterated text #	Input	-	test-A12.count#	Output	-	test-A12a.reqdecho "UNIT Test A12a -";echo "		For kth order co-occurrence program kocos.pl";echo "Input - 	Source file from test-A12.count";echo "Output - 	Destination file from test-A12a.reqd";echo "Test -    	Checks if the program finds correct 1st order";echo "		co-occurrences when the target words end in 'nA' in";echo "		Hindi transliterated text";#=============================================================================#				INPUT#=============================================================================set TestInput="test-A12.count";set Actual="test-A12a.reqd";#=============================================================================#				RUN THE PROGRAM#============================================================================= kocos.pl --regex test-A12.regex $TestInput > test-A12a.output#=============================================================================#				SORT THE RESULTS AND COMPARE#=============================================================================sort test-A12a.output > t1sort $Actual > t2diff -w t1 t2 > variance1#=============================================================================#				RESULTS OF TESTA12a#=============================================================================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-A12.regex ";        cat variance1endifecho ""/bin/rm -f t1 t2 variance1 #############################################################################

⌨️ 快捷键说明

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