Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (5 years ago)
Author:
bruno
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/testsuite/sed.tests

    r2725 r3232  
    77. ./testing.sh
    88
    9 # testing "description" "arguments" "result" "infile" "stdin"
     9# testing "description" "commands" "result" "infile" "stdin"
    1010
    1111# Corner cases
     
    4949# substitutions
    5050testing "sed -n" "sed -n -e s/foo/bar/ -e s/bar/baz/" "" "" "foo\n"
     51testing "sed with empty match" "sed 's/z*//g'" "string\n" "" "string\n"
    5152testing "sed s//p" "sed -e s/foo/bar/p -e s/bar/baz/p" "bar\nbaz\nbaz\n" \
    5253    "" "foo\n"
    5354testing "sed -n s//p" "sed -ne s/abc/def/p" "def\n" "" "abc\n"
    54 test x"$SKIP_KNOWN_BUGS" = x"" && {
    5555testing "sed s//g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" ",1,2,3,4,5,\n" \
    5656    "" "12345\n"
    57 }
    5857testing "sed s arbitrary delimiter" "sed -e 's woo boing '" "boing\n" "" "woo\n"
    5958testing "sed s chains" "sed -e s/foo/bar/ -e s/bar/baz/" "baz\n" "" "foo\n"
     
    226225#   "" "12345"
    227226
    228 # testing "description" "arguments" "result" "infile" "stdin"
     227# testing "description" "commands" "result" "infile" "stdin"
    229228
    230229testing "sed n command must reset 'substituted' bit" \
     
    288287    "bar\nbar\n" "foo\n" ""
    289288
    290 
    291 # testing "description" "arguments" "result" "infile" "stdin"
     289testing "sed understands \r" \
     290    "sed 's/r/\r/'" \
     291    "\rrr\n" "" "rrr\n"
     292
     293testing "sed -i finishes ranges correctly" \
     294    "sed '1,2d' -i input; echo \$?; cat input" \
     295    "0\n3\n4\n" "1\n2\n3\n4\n" ""
     296
     297testing "sed zero chars match/replace advances correctly 1" \
     298    "sed 's/l*/@/g'" \
     299    "@h@e@o@\n" "" "helllo\n"
     300
     301testing "sed zero chars match/replace advances correctly 2" \
     302    "sed 's [^ .]* x g'" \
     303    "x x.x\n" "" " a.b\n"
     304
     305testing "sed zero chars match/replace logic must not falsely trigger here 1" \
     306    "sed 's/a/A/g'" \
     307    "_AAA1AA\n" "" "_aaa1aa\n"
     308
     309testing "sed zero chars match/replace logic must not falsely trigger here 2" \
     310    "sed 's/ *$/_/g'" \
     311    "qwerty_\n" "" "qwerty\n"
     312
     313# testing "description" "commands" "result" "infile" "stdin"
    292314
    293315exit $FAILCOUNT
Note: See TracChangeset for help on using the changeset viewer.