libhal-google / libhal-mock

Mocks, fakes, simulation and other testing utilities for libhal
Apache License 2.0
1 stars 3 forks source link

Fix hexadecimal numeric rendering in unit tests #6

Open kammce opened 1 year ago

kammce commented 1 year ago

Many of the ostream overloads change the base to hex. This needs to be reverted after each usage using std::cout.copyfmt(std::ios(NULL));.

https://stackoverflow.com/questions/4217704/roll-back-or-undo-any-manipulators-applied-to-a-stream-without-knowing-what-th

MaliaLabor commented 1 year ago

.take