pike.git / lib / modules / Protocols.pmod / Bittorrent.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Bittorrent.pmod/testsuite.in:1: - dnl $Id$ +       START_MARKER      test_do( add_constant("id",lambda(string x) { x=x+" "*(20-sizeof(x)); return Protocols.Bittorrent.PeerID.identify_peer(x); }) )      test_eq( id(""), "unknown" )   test_eq( id("-AZ2060-"), "Azureus 2.0.6.0" )   test_eq( id("-AR1234-"), "Arctic 1234" )   test_eq( id("S58B-----"), "Shadow 5.8.11" )   test_eq( id("M3-4-2--"), "Mainline 3.4.2" )