Test FileSink. Simplify tests.

This commit is contained in:
Victor Zverovich
2014-04-29 08:39:37 -07:00
parent 48be5c22a2
commit 063d0077b3
3 changed files with 33 additions and 26 deletions
+4 -1
View File
@@ -39,4 +39,7 @@ expect_compile_error("fmt::Writer() << fmt::pad(\"abc\", 5, L' ');")
expect_compile_error("fmt::Writer() << fmt::pad(42, 5, L' ');")
# Formatting a wide character with a narrow format string is forbidden.
expect_compile_error("Format(\"{}\") << L'a';")
expect_compile_error("fmt::Format(\"{}\") << L'a';")
# There is no implicit conversion from FILE* to FileSink.
expect_compile_error("fmt::FileSink fs = 0;")