| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 | |
|
hub
2018/01/30 23:12:01
I have an update with the license header I forgot.
| |
| 2 | |
| 3 #include "gtest/gtest.h" | |
| 4 #include "compiled/String.h" | |
| 5 #include "compiled/filter/Filter.h" | |
| 6 | |
| 7 TEST(TestFilter, testFromText) | |
| 8 { | |
| 9 OwnedString t(u"www.example.com#@#:-abp-properties(foo)"_str); | |
| 10 DependentString text(t); | |
| 11 | |
| 12 FilterPtr filter(Filter::FromText(text)); | |
| 13 EXPECT_EQ(filter->GetText(), u"www.example.com#@#:-abp-properties(foo)"_str); | |
| 14 } | |
|
hub
2018/01/30 23:12:01
and more comprehensive tests for this part. This w
| |
| OLD | NEW |