Merge branch 'master' into update-project-layout

This commit is contained in:
Mario Werner
2016-01-31 17:00:05 +01:00
5 changed files with 68 additions and 5 deletions

View File

@@ -387,3 +387,12 @@ TEST(FileTest, FdopenError) {
EXPECT_SYSTEM_ERROR_NOASSERT(
f.fdopen("r"), EBADF, "cannot associate stream with file descriptor");
}
#ifdef LC_NUMERIC_MASK
TEST(LocaleTest, Strtod) {
fmt::Locale locale;
const char *start = "4.2", *ptr = start;
EXPECT_EQ(4.2, locale.strtod(ptr));
EXPECT_EQ(start + 3, ptr);
}
#endif