Commit 385ea682 authored by octal's avatar octal

Mime: Added a simple test for MediaType not equality

parent 4b8332db
...@@ -14,6 +14,7 @@ TEST(mime_test, basic_test) { ...@@ -14,6 +14,7 @@ TEST(mime_test, basic_test) {
ASSERT_EQ(m1.toString(), "text/plain"); ASSERT_EQ(m1.toString(), "text/plain");
ASSERT_EQ(m1, MIME(Text, Plain)); ASSERT_EQ(m1, MIME(Text, Plain));
ASSERT_NE(m1, MIME(Application, Json));
auto m2 = MIME3(Application, Xhtml, Xml); auto m2 = MIME3(Application, Xhtml, Xml);
ASSERT_EQ(m2.toString(), "application/xhtml+xml"); ASSERT_EQ(m2.toString(), "application/xhtml+xml");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment