| Index: test/compiled/Filter.cpp |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/test/compiled/Filter.cpp |
| @@ -0,0 +1,14 @@ |
| + |
|
hub
2018/01/30 23:12:01
I have an update with the license header I forgot.
|
| + |
| +#include "gtest/gtest.h" |
| +#include "compiled/String.h" |
| +#include "compiled/filter/Filter.h" |
| + |
| +TEST(TestFilter, testFromText) |
| +{ |
| + OwnedString t(u"www.example.com#@#:-abp-properties(foo)"_str); |
| + DependentString text(t); |
| + |
| + FilterPtr filter(Filter::FromText(text)); |
| + EXPECT_EQ(filter->GetText(), u"www.example.com#@#:-abp-properties(foo)"_str); |
| +} |
|
hub
2018/01/30 23:12:01
and more comprehensive tests for this part. This w
|