comparison tests/plugin-hangman/main.cpp @ 250:79d9840811a1

Irccd: fix tests
author David Demelier <markand@malikania.fr>
date Thu, 18 Aug 2016 16:42:10 +0200
parents 2d10d7e661a0
children 8fb6bd57878c
comparison
equal deleted inserted replaced
249:c2c40fc0beb1 250:79d9840811a1
28 private: 28 private:
29 std::string m_last; 29 std::string m_last;
30 30
31 public: 31 public:
32 inline ServerTest() 32 inline ServerTest()
33 : Server("test", ServerInfo()) 33 : Server("test")
34 { 34 {
35 } 35 }
36 36
37 inline const std::string &last() const noexcept 37 inline const std::string &last() const noexcept
38 { 38 {
53 std::shared_ptr<ServerTest> m_server; 53 std::shared_ptr<ServerTest> m_server;
54 std::shared_ptr<Plugin> m_plugin; 54 std::shared_ptr<Plugin> m_plugin;
55 55
56 public: 56 public:
57 HangmanTest() 57 HangmanTest()
58 : m_ps(m_irccd.pluginService()) 58 : m_ps(m_irccd.plugins())
59 , m_server(std::make_shared<ServerTest>()) 59 , m_server(std::make_shared<ServerTest>())
60 { 60 {
61 m_ps.setFormats("hangman", { 61 m_ps.setFormats("hangman", {
62 { "asked", "asked=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{letter}" }, 62 { "asked", "asked=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{letter}" },
63 { "dead", "dead=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{word}" }, 63 { "dead", "dead=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{word}" },