Skip to content

Commit 4d7d4f1

Browse files
authored
<format>: Add header unit test (#1816)
Tests format import.
1 parent e5e024a commit 4d7d4f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/std/tests/P1502R1_standard_library_header_units/custom_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def getBuildSteps(self, test, litConfig, shared):
2929
'exception',
3030
'execution',
3131
'filesystem',
32-
# 'format',
32+
'format',
3333
'forward_list',
3434
'fstream',
3535
'functional',

tests/std/tests/P1502R1_standard_library_header_units/custombuild.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ()
2828
"exception",
2929
"execution",
3030
"filesystem",
31-
# "format",
31+
"format",
3232
"forward_list",
3333
"fstream",
3434
"functional",

tests/std/tests/P1502R1_standard_library_header_units/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import <deque>;
2929
import <exception>;
3030
import <execution>;
3131
import <filesystem>;
32-
// import <format>;
32+
import <format>;
3333
import <forward_list>;
3434
import <fstream>;
3535
import <functional>;
@@ -305,7 +305,7 @@ int main() {
305305

306306
{
307307
puts("Testing <format>.");
308-
puts("(TRANSITION, not yet implemented.)");
308+
assert(format("{} {}", "testing", "format") == "testing format");
309309
}
310310

311311
{

0 commit comments

Comments
 (0)