pike.git / src / testsuite.in

version» Context lines:

pike.git/src/testsuite.in:1: - test_true([["$Id: testsuite.in,v 1.719 2004/04/23 19:31:10 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.720 2004/04/29 19:23:49 nilsson Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])   test_compile_any([[#pike 7.4]])   test_compile_any([[#pike 7.0]])   test_compile_any([[#pike 0.6]])      cond([[all_constants()->_verify_internals]],   [[    test_do(_verify_internals())
pike.git/src/testsuite.in:8427:   test_eq(basetype(lambda(){}),"function")   test_eq(basetype(typeof(0)),"type")      // - call_function   test_eq(1,call_function(a))   test_eq(1,call_function(lambda(int a){ return a; },1))   test_eq(1,call_function(intp,1))      // - call_out   // - call_out_info +    // - callablep -  + test_true( callablep(time) ) + test_true( callablep(String.capitalize) ) + test_true( callablep(CommonLog.read) ) + test_true( callablep(ADT.Stack) ) + test_true( callablep(String.Buffer) ) + test_true( callablep( class { void `()() { } }() ) ) + test_false( callablep(String.Buffer()) ) + test_true( callablep( ({}) ) ) + test_true( callablep( ({ 0,0 }) ) ) + test_false( callablep( ({ 0,1 }) ) ) + test_true( callablep( ({ time }) ) ) + test_true( callablep( ({ time, 0 }) ) ) + test_false( callablep( ({ "a", time }) ) ) + test_false( callablep( ({ "" }) ) ) + test_false( callablep( "" ) ) + test_false( callablep( 3.14 ) ) + test_false( callablep( (< time >) ) ) + test_false( callablep( 0 ) ) + test_false( callablep( 7 ) ) +  +    // - cd      // - ceil   // Tested in _math      // - chmod   // - chown   // - chroot   // - cleargroups   
pike.git/src/testsuite.in:9599:      // - sqrt   // Tested in _math      // - strerror   test_true(stringp(strerror(0)))   test_true(stringp(strerror(1)))   test_true(stringp(strerror(-1)))      // - string_to_unicode, unicode_to_string + test_eq(string_to_unicode(""), "")   test_eq(string_to_unicode("foo"), "\0f\0o\0o")   test_eq(string_to_unicode("blä"), "\0b\0l\0ä")   test_eq(string_to_unicode("\77077"), "\176\77")   test_eq(string_to_unicode("\777077"), "\330\277\336\77")   test_eq(string_to_unicode("\777077foo\77077\777077blä\777077"), "\330\277\336\77\0f\0o\0o\176\77\330\277\336\77\0b\0l\0ä\330\277\336\77") -  + test_eq(unicode_to_string(""), "")   test_eq(unicode_to_string("\330\277\336\77\0f\0o\0o\176\77\330\277\336\77\0b\0l\0ä\330\277\336\77"), "\777077foo\77077\777077blä\777077")   test_eq(unicode_to_string("\330\277\336\77"), "\777077")   test_eq(unicode_to_string("\176\77"), "\77077")   test_eq(unicode_to_string("\0b\0l\0ä"), "blä")   test_eq(unicode_to_string("\0f\0o\0o"), "foo")   test_eq(unicode_to_string("\xfe\xff\330\277\336\77\0f\0o\0o\176\77\330\277\336\77\0b\0l\0ä\330\277\336\77"), "\777077foo\77077\777077blä\777077")   test_eq(unicode_to_string("\xfe\xff\330\277\336\77"), "\777077")   test_eq(unicode_to_string("\xfe\xff\176\77"), "\77077")   test_eq(unicode_to_string("\xfe\xff\0b\0l\0ä"), "blä")   test_eq(unicode_to_string("\xfe\xff\0f\0o\0o"), "foo")   test_eq(unicode_to_string("\xff\xfe\277\330\77\336f\0o\0o\0\77\176\277\330\77\336b\0l\0ä\0\277\330\77\336"), "\777077foo\77077\777077blä\777077")   test_eq(unicode_to_string("\xff\xfe\277\330\77\336"), "\777077")   test_eq(unicode_to_string("\xff\xfe\77\176"), "\77077")   test_eq(unicode_to_string("\xff\xfe""b\0l\0ä\0"), "blä")   test_eq(unicode_to_string("\xff\xfe""f\0o\0o\0"), "foo")      test_eval_error(return string_to_unicode("\7077077")) -  + test_eval_error(return string_to_unicode("\xffff\x10000")) + test_eval_error(return unicode_to_string(" "))      // - string_to_utf8, utf8_to_string   test_eq(string_to_utf8("foo"), "foo")   test_eq(string_to_utf8("blä"), "bl\303\244")   test_eq(string_to_utf8("\77077"), "\347\270\277")   test_eq(string_to_utf8("\7077077"), "\367\207\270\277")   test_eq(string_to_utf8("\77077077"), "\370\277\207\270\277")   test_eq(string_to_utf8("\7077077077"), "\374\270\277\207\270\277")   test_eq(string_to_utf8("\77077077077", 1), "\376\203\270\277\207\270\277")   test_eq(utf8_to_string("\376\203\270\277\207\270\277", 1), "\77077077077")