1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/testdata/source-chars-bidi.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
395 B
Python
Raw Normal View History

# 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]