📄 testsnefru
字号:
#! /bin/sh## This is a short shell script to test the hash function.#<<EOF /bin/cat | ./snefru >snefruOutputEOF<<EOF /bin/cat | ./snefru >>snefruOutput1EOF<<EOF /bin/cat | ./snefru >>snefruOutput12EOF<<EOF /bin/cat | ./snefru >>snefruOutput123EOF<<EOF /bin/cat | ./snefru >>snefruOutput1234EOF<<EOF /bin/cat | ./snefru >>snefruOutput12345EOF<<EOF /bin/cat | ./snefru >>snefruOutput123456EOF<<EOF /bin/cat | ./snefru >>snefruOutput1234567EOF<<EOF /bin/cat | ./snefru >>snefruOutput12345678EOF<<EOF /bin/cat | ./snefru >>snefruOutput123456789EOF<<EOF /bin/cat | ./snefru >>snefruOutputThe theory of quantum electrodynamics has now lasted formore than fifty years, and has been tested more and moreaccurately over a wider and wider range of conditions.At the present time I can proudly say that there is nosignificant difference between experiment and theory!Just to give you an idea of how the theory has been putthrough the wringer, I'll give you some recent numbers:experiments have Dirac's number at 1.00115965221 (withan uncertainty of about five times as much). To give youa feeling for the accuracy of these numbers, it comesout something like this: If you were to measure thedistance from Los Angeles to New York to this accuracy,it would be exact to the thickness of a human hair.That's how delicately quantum electrodynamics has, in thepast fifty years, been checked -- both theoretically andexperimentally.EOFdiff snefruOutput correctSnefruOutputif [ $? -eq 0 ] ; then /bin/echo Test Passedelse /bin/echo Test Failedfi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -