pike.git / lib / modules / testsuite.in

version» Context lines:

pike.git/lib/modules/testsuite.in:1: - dnl $Id: testsuite.in,v 1.45 2009/11/10 13:12:08 grubba Exp $ + dnl $Id$      START_MARKER      dnl - Arg      test_equal( Arg.parse("aa --hopp --haha=ho -bar=foo x y"/" "),    ([ "hopp":1, "haha":"ho", "b":1, "a":1, "r":"foo", Arg.REST: ({"x","y"}) ]) )   test_equal( Arg.parse("aa -bar -x=6"/" "),    ([ "b":1, "a":1, "r":1, "x":"6", Arg.REST: ({}) ]) )   test_equal( Arg.parse("aa --foo --bar"/" "),
pike.git/lib/modules/testsuite.in:743:   test_equal([[Process.split_quoted_string ("\\a")]],    [[({"a"})]])   test_equal([[Process.split_quoted_string ("\\ ")]],    [[({" "})]])   test_equal([[Process.split_quoted_string ("x\\")]],    [[({"x"})]])   test_equal([[Process.split_quoted_string ("\"\\\"foo bar\"")]],    [[({"\"foo bar"})]])   test_equal([[Process.split_quoted_string ("\"\"foo bar\"")]],    [[({"foo", "bar"})]]) + test_equal([[Process.split_quoted_string (" \t\n\r a \t\n\r b \t\n\r ")]], +  [[({"a", "b"})]]) + test_equal([[Process.split_quoted_string ("")]], +  [[({})]]) + test_equal([[Process.split_quoted_string ("\"\"")]], +  [[({""})]]) + test_equal([[Process.split_quoted_string ("''")]], +  [[({""})]]) + test_equal([[Process.split_quoted_string ("a '' \"\" b")]], +  [[({"a", "", "", "b"})]]) + test_equal([[Process.split_quoted_string ("\\")]], +  [[({})]]) + test_equal([[Process.split_quoted_string ("\\\\")]], +  [[({"\\"})]]) + test_equal([[Process.split_quoted_string ("\\\\", 1)]], +  [[({"\\"})]]) + test_equal([[Process.split_quoted_string ("\"")]], +  [[({""})]]) + test_equal([[Process.split_quoted_string ("'")]], +  [[({""})]]) + test_equal([[Process.split_quoted_string ("\"\\\"'\\x\"")]], +  [[({"\"'\\x"})]]) + test_equal([[Process.split_quoted_string ("'\"\\'\\x'")]], +  [[({"\"\\x"})]]) + test_equal([[Process.split_quoted_string ("\"a \t\n\rb\"")]], +  [[({"a \t\n\rb"})]]) + test_equal([[Process.split_quoted_string ("a\"b\"\'c\'")]], +  [[({"abc"})]]) + test_equal([[Process.split_quoted_string ("a\\ b")]], +  [[({"a b"})]]) + test_equal([[Process.split_quoted_string ("\\a\\b")]], +  [[({"ab"})]]) + test_equal([[Process.split_quoted_string ("\\a\\b", 1)]], +  [[({"\\a\\b"})]]) + test_equal([[Process.split_quoted_string ("\0")]], +  [[({"\0"})]]) + test_equal([[Process.split_quoted_string ("\0q\0p\0\0r\0")]], +  [[({"\0q\0p\0\0r\0"})]]) + test_equal([[Process.split_quoted_string ("\"\0\"")]], +  [[({"\0"})]]) + test_equal([[Process.split_quoted_string ("\"\0q\0p\0\0r\0\"")]], +  [[({"\0q\0p\0\0r\0"})]]) + test_equal([[Process.split_quoted_string ("'\0'")]], +  [[({"\0"})]]) + test_equal([[Process.split_quoted_string ("'\0q\0p\0\0r\0'")]], +  [[({"\0q\0p\0\0r\0"})]]) + test_equal([[Process.split_quoted_string ("\"\\\"")]], +  [[({"\""})]]) + test_equal([[Process.split_quoted_string ("\"\\")]], +  [[({"\\"})]]) + test_equal([[Process.split_quoted_string ("\"\\\0")]], +  [[({"\\\0"})]]) + test_equal([[Process.split_quoted_string ("\"a\\bc")]], +  [[({"a\\bc"})]]) + test_equal([[Process.split_quoted_string ("'a\\bc")]], +  [[({"a\\bc"})]])   test_equal([[Process.split_quoted_string("pike -m master.pike 'write(\"test\");'")]],[[({"pike","-m","master.pike","write(\"test\");"})]])   test_false([[   #ifdef __NT__    Process.system(RUNPIKE +" -e exit(0)")   #else /* !__NT__ */    Process.system(RUNPIKE +" -e 'exit(0)'")   #endif /* __NT__ */   ]])   test_true([[   #ifdef __NT__