code: mafs

ref: fb53d7e68bcb2108fb304c81dccb1d7ff50ffa1f
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