>From 0ad234355e574d9027bb5a8da60f60743c893a02 Mon Sep 17 00:00:00 2001 From: Ilya Kuzmich <ilya.kuzm...@gmail.com> Date: Mon, 29 May 2017 17:57:09 +0300 Subject: [PATCH] strings -t oxd tests
--- tests/strings.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/strings.test b/tests/strings.test index 8becc2f..935d3bc 100644 --- a/tests/strings.test +++ b/tests/strings.test @@ -18,3 +18,8 @@ testing "-o, multiple strings" "strings -n3 -o input | sed 's/^ *//'" \ "1 foo\n7 bar\n" "\0foo\0b\0bar\n" "" testing "-fo" "strings -fo input | sed 's/: */: /'" "input: 6 foobar\n" \ "\0\0\0\0\0\0foobar\n" "" + +OFFSET_10="\0\0\0\0\0\0\0\0\0\0foobar" +testing "-t o" "strings -t o | sed 's/^ *//'" "12 foobar\n" "" $OFFSET_10 +testing "-t d" "strings -t d | sed 's/^ *//'" "10 foobar\n" "" $OFFSET_10 +testing "-t x" "strings -t x | sed 's/^ *//'" "a foobar\n" "" $OFFSET_10 -- 2.7.4
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net