Refactor file layer

This commit is contained in:
Victor Zverovich
2023-12-22 11:27:22 -08:00
parent 1ca1a4a7a9
commit 3a0f4af4e9
2 changed files with 89 additions and 36 deletions
+2
View File
@@ -28,6 +28,8 @@ TEST(scan_test, read_int) {
EXPECT_EQ(n, 42);
fmt::scan("-42", "{}", n);
EXPECT_EQ(n, -42);
EXPECT_THROW_MSG(fmt::scan(std::to_string(INT_MAX + 1u), "{}", n),
fmt::format_error, "number is too big");
}
TEST(scan_test, read_longlong) {