summaryrefslogtreecommitdiff
path: root/testdata/source-chars-bidi.py
blob: d728da503da39b4f6f2ff371df7dfe93046b8659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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]