Corrected spelling in test and exception messages

Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk>
This commit is contained in:
Dave Hickin
2015-07-08 18:19:53 +01:00
parent 4f2c51c480
commit 40952df965
3 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ bool operator==(const Field& a, const Field& b)
return A==B;
}
default:
throw std::logic_error("Invalid Field type in comparision");
throw std::logic_error("Invalid Field type in comparison");
}
}

View File

@@ -356,7 +356,7 @@ static void testPush()
static void testVoid()
{
testDiag("Test vecter cast to/from void");
testDiag("Test vector cast to/from void");
epics::pvData::shared_vector<int32> typed(4);

View File

@@ -575,14 +575,14 @@ static void testFieldAccess()
try{
fld->getAs<PVInt>("invalid");
testFail("missing requried exception");
testFail("missing required exception");
}catch(std::runtime_error& e){
testPass("caught expected exception: %s", e.what());
}
try{
fld->getAs<PVDouble>("test");
testFail("missing requried exception");
testFail("missing required exception");
}catch(std::runtime_error& e){
testPass("caught expected exception: %s", e.what());
}