diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-13 20:55:29 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-09-13 20:55:29 +0000 |
commit | a242b1eb35863b73cbc63699fafe920e8b92c858 (patch) | |
tree | 141db2c3c4a20d1a44d7fe357a39d0ba4aab9d4f /Test | |
parent | efd061cdc9bdc0ba692387ec25eb6d01616d0425 (diff) | |
download | zsh-a242b1eb35863b73cbc63699fafe920e8b92c858.tar.gz zsh-a242b1eb35863b73cbc63699fafe920e8b92c858.tar.xz zsh-a242b1eb35863b73cbc63699fafe920e8b92c858.zip |
22705: make ${(l...)...} and ${(r...)...} handle multibyte characters
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 12 | ||||
-rw-r--r-- | Test/D07multibyte.ztst | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 7c0b28878..57147d53e 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -366,6 +366,18 @@ 0:${(pl...)...} >Xresulting """"Xwords roariously """Xpadded + print ${(l.5..X.r.5..Y.)foo} + print ${(l.6..X.r.4..Y.)foo} + print ${(l.7..X.r.3..Y.)foo} + print ${(l.6..X..A.r.6..Y..B.)foo} + print ${(l.6..X..AROOGA.r.6..Y..BARSOOM.)foo} +0:simultaneous left and right padding +>Xresulting XXXwordsYY proariousl XXpaddedYY +>XXresultin XXXXwordsY uproarious XXXpaddedY +>XXXresulti XXXXXwords Xuproariou XXXXpadded +>XAresultingB XXXAwordsBYY uproariously XXApaddedBYY +>GAresultingB OOGAwordsBAR uproariously OGApaddedBAR + foo=(why in goodness name am I doing this) print ${(r.5..!..?.)foo} 0:${(r...)...} diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index fe20ebb73..8b17a7294 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -283,3 +283,17 @@ >Ἐν ἀρχῇ ἦν ὁ >Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ ἦν ὁ λόγος >Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν, καὶ + + foo=(κατέβην χθὲς εἰς Πειραιᾶ) + print ${(l.3..¥.r.3..£.)foo} + print ${(l.4..¥.r.2..£.)foo} + print ${(l.5..¥.r.1..£.)foo} + print ${(l.4..¥..«.r.4..£..».)foo} + print ${(l.4..¥..Σωκράτης.r.4..£..Γλαύκωνος.)foo} +0:simultaneous left and right padding +>κατέβη ¥χθὲς£ ¥¥εἰς£ Πειραι +>¥κατέβ ¥¥χθὲς ¥¥¥εἰς ¥Πειρα +>¥¥κατέ ¥¥¥χθὲ ¥¥¥¥εἰ ¥¥Πειρ +>«κατέβην ¥«χθὲς»£ ¥¥«εἰς»£ «Πειραιᾶ +>ςκατέβην ηςχθὲςΓλ τηςεἰςΓλ ςΠειραιᾶ +# er... yeah, that looks right... |