Fix Locale issue in QA tests

This commit is contained in:
Seth Hillbrand 2021-05-28 13:25:18 -07:00
parent be5b281501
commit e2785b117b
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <base_units.h>
#include <locale_io.h>
#include <algorithm>
#include <iostream>
@ -44,6 +45,7 @@ BOOST_FIXTURE_TEST_SUITE( UnitConversion, UnitFixture )
*/
BOOST_AUTO_TEST_CASE( wxPointUnitFormat )
{
LOCALE_IO toggle;
std::string str = FormatInternalUnits( wxPoint( 123456, 52525252 ) );
std::string strZero = FormatInternalUnits( wxPoint( 0, 0 ) );
std::string strNeg = FormatInternalUnits( wxPoint( -123456, -52525252 ) );