Stream Insertion Fails on Windows & macOS
The unit tests for the stream insertion operator for a Money object fails on Windows.
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdLead_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : USD-11.4,524
Expected (std::string{"USD-11.4524"}.c_str()): USD-11.4524
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(996) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdTail_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : -11.4,524USD
Expected (std::string{"-11.4524USD"}.c_str()): -11.4524USD
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1004) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdLeadSymbol_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : $-11.4,524
Expected (std::string{"$-11.4524"}.c_str()): $-11.4524
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1012) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdTrailSymbol_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : -11.4,500$
Expected (std::string{"-11.4500$"}.c_str()): -11.4500$
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1020) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdLeadSymbolSpace_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : $ -11.4,524
Expected (std::string{"$ -11.4524"}.c_str()): $ -11.4524
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1028) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::streamInsertionNegativeUsdTrailSymbolSpace_ShouldInsert() Compared strings are not the same
Actual (ss.str().c_str()) : -11.4,524 $
Expected (std::string{"-11.4524 $"}.c_str()): -11.4524 $
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1036) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::toStringDefault_ShouldConvert() Compared strings are not the same
Actual (str.c_str()): 0
Expected ("0.00 XXX") : 0.00 XXX
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1104) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::toStringDefaultUsd_ShouldConvert() Compared strings are not the same
Actual (str.c_str()) : 0
Expected ("0.0000 USD"): 0.0000 USD
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1111) : failure location
FAIL! : pecunia::currency::tests::MoneyUT::toStringNegativeAmount_ShouldConvert() Compared strings are not the same
Actual (str.c_str()) : -11
Expected ("-11.4500 USD"): -11.4500 USD
C:\Users\johnms\source\repos\pecunia\src\unit-tests\money-unit-tests.cpp(1118) : failure location