diff --git a/tests/common/customsharedptrtest.cpp b/tests/common/customsharedptrtest.cpp index e32fa6b22..bab7cfaa1 100644 --- a/tests/common/customsharedptrtest.cpp +++ b/tests/common/customsharedptrtest.cpp @@ -1,5 +1,5 @@ /* - CustomSharedPtr(Test) - refcounting, equality and comparisons + CustomSharedPtr(Test) - ref counting, equality and comparisons Copyright (C) Lumiera.org 2008, Hermann Vosseler @@ -174,16 +174,15 @@ namespace asset P pX1; // Base: shared_ptr P > pX2; // Base: P P > pX3; // Base: shared_ptr - P > pLo;// Base: shared_ptr (quite a nonsene, but well...) + P > pLo;// Base: shared_ptr (quite a nonsense, but well...) P pLoL; // Base: std::string P pLoLoL; // Base: shared_ptr - ASSERT (INSTANCEOF (P, &pX)); ASSERT (INSTANCEOF (shared_ptr, &pX)); ASSERT ( INSTANCEOF (shared_ptr, &pX1)); // ASSERT (!INSTANCEOF (shared_ptr, &pX1)); // doesn't compile (no RTTI) -- that's correct -// ASSERT (!INSTANCEOF (P, &pX1)); +// ASSERT (!INSTANCEOF (P, &pX1)); // similar, type mismatch detected by compiler ASSERT ( INSTANCEOF (shared_ptr, &pX2)); // ASSERT (!INSTANCEOF (shared_ptr, &pX2)); @@ -209,8 +208,8 @@ namespace asset pX = pX1; // OK: pointee subtype... pX = pX2; // invokes shared_ptr::operator= (shared_ptr const&) pX = pX3; -// pX = pLo; // similar, but long* not asignable to X* -// pX = pLoL; // similar, but string* not asignable to X* +// pX = pLo; // similar, but long* not assignable to X* +// pX = pLoL; // similar, but string* not assignable to X* // pX = pLoLoL; // same... // you won't be able to do much with the "LoLo"-Types, // as their types and pointee types's relations don't match @@ -295,7 +294,7 @@ namespace asset ASSERT (!(pXX <= pX5)); ASSERT (!(pXX >= pX5)); - ASSERT ( (pX5 == pX6)); // compare two empty ptrs: "equal, aequivalent but not orderable" + ASSERT ( (pX5 == pX6)); // compare two empty ptrs: "equal, equivalent but not orderable" ASSERT (!(pX5 != pX6)); ASSERT (!(pX5 < pX6)); ASSERT (!(pX5 > pX6));