code: mafs

ref: 390e726c64ee2aca967617ac7f7fd2a44f27646b
dir: /tests/chknlastdatablocks.rc/

View raw version
#!/bin/rc

nl='
'

fn check {
	r=`$nl{6.nlastdatablocks $1}
	if(! ~ $r $2){
		echo "$"r"
		echo "$"2"
		echo $status
		>[1=2] echo fail: $1: got $r expected $2
#		exit 'fail'
	}
}

check 484 1
check 485 1
check 491 1
check 492 1
check 493 2
check 512 2
check 1007636 1969
check 1048556 2048
check 1048576 1
check 2056192 1969
check 0 0
check 1 1