• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision159 (tree)
Time2018-12-04 20:23:02
Authorquiret

Log Message

- added MSVC debug visualizers for eir::MultiString, eir::Vector and eir::String

Change Summary

Incremental Difference

--- unittests/src/string.cpp (revision 158)
+++ unittests/src/string.cpp (revision 159)
@@ -217,6 +217,19 @@
217217 }
218218 printf( "ok.\n" );
219219
220+ printf( "testing string operator + with different allocators..." );
221+ {
222+ eir::String <char, EirHeapLinkAllocator> string( eir::constr_with_alloc::DEFAULT, &globalHeapAlloc );
223+
224+ string = "my_texture";
225+
226+ eir::String <char, EirHeapAllocator> msg =
227+ std::move <eir::String <char, EirHeapAllocator>> ( "texture " + string + " is badly formatted" );
228+
229+ assert( msg == "texture my_texture is badly formatted" );
230+ }
231+ printf( "ok.\n" );
232+
220233 printf( "testing string allocator copy..." );
221234 {
222235 // The dynamic case.
Show on old repository browser