test_returnValue_vector_elementbyelement.Rd
Tests a Standard R 'vector' Element-By-Element ('RTestTest_vector_elementbyelement')
test_returnValue_vector_elementbyelement(result, reference, xmlTestSpec, add.desc = NULL)
result | ( |
---|---|
reference | ( |
xmlTestSpec | ( |
add.desc | ( |
# Cleaning up tryCatch(unloadNamespace("RTest")) tryCatch(unloadNamespace("testthat")) library(RTest)#>#> #>#>#> #>data <- '<test_variable desc="Compare a value" diff-type="absolute" compare-type="equal" tolerance="1E-3"/>' xmlTestSpec <- XML::xmlRoot(XML::xmlParse(data,asText=TRUE)) test_returnValue_vector_elementbyelement(c(5,5),c(5,5),xmlTestSpec) test_returnValue_vector_elementbyelement(c(5,5),c(5,5.000001),xmlTestSpec) data <- '<test_variable desc="Compare a value" diff-type="relative" compare-type="equal" tolerance="1E-6"/>' xmlTestSpec <- XML::xmlRoot(XML::xmlParse(data,asText=TRUE)) tryCatch(unloadNamespace("RTest")) tryCatch(unloadNamespace("testthat")) library(RTest)#>#> #>#>#> #>