diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
commit | 4f5791ebd03eaec1c7da0865a383175b05102712 (patch) | |
tree | 8ce7b00f7a76baa386372422adebbe64510812d4 /testdata/source-chars-bidi.py | |
parent | Initial commit. (diff) | |
download | samba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip |
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testdata/source-chars-bidi.py')
-rw-r--r-- | testdata/source-chars-bidi.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testdata/source-chars-bidi.py b/testdata/source-chars-bidi.py new file mode 100644 index 0000000..d728da5 --- /dev/null +++ b/testdata/source-chars-bidi.py @@ -0,0 +1,24 @@ +# Used in samba.tests.source_chars to ensure bi-directional text is +# caught. (make test TESTS=samba.tests.source_chars) + +x = א =2 +ח = n = 3 + +a = x # 2 * n * m +b = א # 2 * ח * m +c = "x#" # n +d = "א#" # ח +e = f"x{x}n{n}" +f = f"א{א}ח{ח}" + +print(a) +print(b) +print(c) +print(d) +print(e) +print(f) + +assert a == b +assert c == d.replace("א", "x") +assert e[1] == f[1] +assert e[3] == f[3] |