Question: Make sure code for part B passes all test provided by the following code: ## check whether function ptypelerr is defined if ( test _
Make sure code for part B passes all test provided by the following code:
## check whether function ptypelerr is defined
if testthatdesc code
expectequalexistsptypelerr mode"function" TRUE
TRUE stopFunction ptypelerr not created!"
## check whether output is numeric or double
if testthatdesc code
expectequalisnumericptypelerr TRUE
TRUE stopThe output is not numericdouble
And
## check whether the rdth and th digit of ptypelerr are respectively
if testthatdesc code
expectequal floor ptypelerr
TRUE stopSorry wrong answer"
## check whether the th and th digit of ptypelerr are respectively
if testthatdesc code
expectequal floor ptypelerr
TRUE stopSorry wrong answer"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
