We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf796c commit 35ff72fCopy full SHA for 35ff72f
test/test_interpreter.cpp
@@ -15,6 +15,7 @@
15
#include "xeus-cpp/xutils.hpp"
16
#include "xeus-cpp/xoptions.hpp"
17
#include "xeus-cpp/xeus_cpp_config.hpp"
18
+#include "xcpp/xmime.hpp"
19
20
#include "../src/xparser.hpp"
21
#include "../src/xsystem.hpp"
@@ -1079,3 +1080,17 @@ TEST_SUITE("file") {
1079
1080
infile.close();
1081
}
1082
1083
+
1084
+TEST_SUITE("mime_bundle_repr")
1085
+{
1086
+ TEST_CASE("int")
1087
+ {
1088
+ int value = 42;
1089
+ nl::json res = xcpp::mime_bundle_repr(value);
1090
+ nl::json expected = {
1091
+ {"text/plain", "42"}
1092
+ };
1093
1094
+ REQUIRE(res == expected);
1095
+ }
1096
+}
0 commit comments