1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
9 require 'plugins/loader'
11 class TestEngineLoader < Test::Unit::TestCase
13 @ploader = PluginLoader.new
14 @loader = @ploader.get_matching(:engine_loader).new
17 def test_protocol_list
18 assert_equal ['GNUShogi', 'XBoard'],
19 @ploader.get_all_matching(:engine).
20 map {|klass| klass.data(:protocol) }.