Contents of /tags/mkinitrd-6_2_1/busybox/testsuite/fold.tests
Parent Directory | Revision Log
Revision 999 -
(show annotations)
(download)
Sun May 30 12:16:23 2010 UTC (14 years, 4 months ago) by niro
File size: 2595 byte(s)
Sun May 30 12:16:23 2010 UTC (14 years, 4 months ago) by niro
File size: 2595 byte(s)
tagged 'mkinitrd-6_2_1'
1 | #!/bin/sh |
2 | # Copyright 2009 by Denys Vlasenko |
3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | |
5 | . ./testing.sh |
6 | |
7 | # testing "test name" "options" "expected result" "file input" "stdin" |
8 | |
9 | testing "fold -s" "fold -w 7 -s" \ |
10 | "123456\n\t\nasdf" \ |
11 | "" \ |
12 | "123456\tasdf" \ |
13 | |
14 | testing "fold -w1" "fold -w1" \ |
15 | "q\nq\n \nw\n \ne\ne\ne\n \nr\n \nt\nt\nt\nt\n \ny" \ |
16 | "" \ |
17 | "qq w eee r tttt y" \ |
18 | |
19 | testing "fold with NULs" "fold -sw22" \ |
20 | "\ |
21 | The NUL is here:>\0< \n\ |
22 | and another one is \n\ |
23 | here:>\0< - they must \n\ |
24 | be preserved |
25 | " \ |
26 | "" \ |
27 | "The NUL is here:>\0< and another one \ |
28 | is here:>\0< - they must be preserved |
29 | " \ |
30 | |
31 | # The text was taken from English and Ukrainian wikipedia pages |
32 | testing "fold -sw66 with unicode input" "fold -sw66" \ |
33 | "\ |
34 | The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\ |
35 | Messier 31, M31, or NGC224; often referred to as the Great \n\ |
36 | Andromeda Nebula in older texts) is a spiral galaxy approximately \n\ |
37 | 2,500,000 light-years (1.58×10^11 AU) away in the constellation \n\ |
38 | Andromeda. It is the nearest spiral galaxy to our own, the Milky \n\ |
39 | Way.\n\ |
40 | Галактика або Туманність Андромеди (також відома як M31 за \n\ |
41 | каталогом Мессьє та NGC224 за Новим загальним каталогом) — \n\ |
42 | спіральна галактика, що знаходиться на відстані приблизно у 2,5 \n\ |
43 | мільйони світлових років від нашої планети у сузір'ї Андромеди. \n\ |
44 | На початку ХХІ ст. в центрі галактики виявлено чорну дірку." \ |
45 | "" \ |
46 | "\ |
47 | The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \ |
48 | Messier 31, M31, or NGC224; often referred to as the Great \ |
49 | Andromeda Nebula in older texts) is a spiral galaxy approximately \ |
50 | 2,500,000 light-years (1.58×10^11 AU) away in the constellation \ |
51 | Andromeda. It is the nearest spiral galaxy to our own, the Milky \ |
52 | Way. |
53 | Галактика або Туманність Андромеди (також відома як M31 за \ |
54 | каталогом Мессьє та NGC224 за Новим загальним каталогом) — \ |
55 | спіральна галактика, що знаходиться на відстані приблизно у 2,5 \ |
56 | мільйони світлових років від нашої планети у сузір'ї Андромеди. \ |
57 | На початку ХХІ ст. в центрі галактики виявлено чорну дірку." \ |
58 | |
59 | exit $FAILCOUNT |
Properties
Name | Value |
---|---|
svn:executable | * |