mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
fix: use C locale by default
This commit is contained in:

committed by
Jesse Beder

parent
1d8ca1f35e
commit
b95aa146ec
@@ -849,5 +849,17 @@ TEST_F(NodeEmitterTest, NestFlowMapListNode) {
|
||||
|
||||
ExpectOutput("{position: [1.5, 2.25, 3.125]}", mapNode);
|
||||
}
|
||||
|
||||
TEST_F(NodeEmitterTest, RobustAgainstLocale) {
|
||||
std::locale::global(std::locale(""));
|
||||
Node node;
|
||||
node.push_back(1.5);
|
||||
node.push_back(2.25);
|
||||
node.push_back(3.125);
|
||||
node.push_back(123456789);
|
||||
|
||||
ExpectOutput("- 1.5\n- 2.25\n- 3.125\n- 123456789", node);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user