Skip to content

Commit d0b9f7d

Browse files
committed
Added mime_bundle_repr test
1 parent c8b28f5 commit d0b9f7d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test_interpreter.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,3 +1079,17 @@ TEST_SUITE("file") {
10791079
infile.close();
10801080
}
10811081
}
1082+
1083+
TEST_SUITE("mime_bundle_repr")
1084+
{
1085+
TEST_CASE("int")
1086+
{
1087+
int value = 42;
1088+
nl::json res = xcpp::mime_bundle_repr(value);
1089+
nl::json expected = {
1090+
{"text/plain", "42"}
1091+
};
1092+
1093+
REQUIRE(res == expected);
1094+
}
1095+
}

0 commit comments

Comments
 (0)