2 #include "lib/font_comparator.h"
3 #include <boost/test/unit_test.hpp>
7 using std::make_shared;
13 BOOST_AUTO_TEST_CASE(font_comparator_test)
15 map<dcpomatic::Font::Content, string, FontComparator> cache;
17 auto font = make_shared<dcpomatic::Font>("foo");
19 BOOST_CHECK(cache.find(font->content()) == cache.end());
20 cache[font->content()] = "foo";
21 BOOST_CHECK(cache.find(font->content()) != cache.end());
23 font->set_file("test/data/Inconsolata-VF.ttf");
24 BOOST_CHECK(cache.find(font->content()) == cache.end());