pike.git / lib / modules / Standards.pmod / testsuite.in

version» Context lines:

pike.git/lib/modules/Standards.pmod/testsuite.in:1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.16 2006/06/09 14:14:39 nilsson Exp $"]]); + test_true([["$Id: testsuite.in,v 1.17 2007/08/05 12:15:37 marcus Exp $"]]);      // - Standards.ISO639_2   test_equal(Standards.ISO639_2.get_language("swe"),"Swedish")   test_equal(Standards.ISO639_2.get_language("xxx"),0)   test_true(sizeof(Standards.ISO639_2.list_languages())>400)   test_equal(Standards.ISO639_2.map_639_1("sv"),"swe")   test_equal(Standards.ISO639_2.map_639_1("xx"),0)   test_true(sizeof(Standards.ISO639_2.list_639_1())>150)   test_do(   class A {
pike.git/lib/modules/Standards.pmod/testsuite.in:118:   test_punycode([["-> $1.00 <-"]], [["-> $1.00 <--"]]) // S      // Case check   test_eq([[Standards.IDNA.Punycode.decode("b1abfaaepdrnnbgefbaDotcwatmq2g4l")]],    [["\x43F\x43E\x447\x435\x43C\x443\x436\x435\x43E\x43D\x438"    "\x43D\x435\x433\x43E\x432\x43E\x440\x44F\x442\x43F\x43E"    "\x440\x443\x441\x441\x43A\x438"]]) // I      // - UUID   test_eq(Standards.UUID.make_dns("www.widgets.com")->str(), -  "e902893a-9d22-3c7e-a7b8-d6e313b71d9f") +  "3d813cbb-47fb-32ba-91df-831e1593ac29")   test_eq(Standards.UUID.make_null()->str(),    "00000000-0000-0000-0000-000000000000")      // - TLD   test_equal(Standards.TLD.cc.se, "Sweden")   test_true(Standards.TLD.generic.com)      END_MARKER