s3:modules: Fix the horrible vfs_crossrename module
[martins/samba.git] / testdata / source-chars-bidi.py
1 # Used in samba.tests.source_chars to ensure bi-directional text is
2 # caught. (make test TESTS=samba.tests.source_chars)
3
4 x = א =2
5 ח = n = 3
6
7 a = x  # 2 * n * m
8 b = א  # 2 * ח * m
9 c = "x#"  #  n
10 d = "א#"  #  ח
11 e = f"x{x}n{n}"
12 f = f"א{א}ח{ח}"
13
14 print(a)
15 print(b)
16 print(c)
17 print(d)
18 print(e)
19 print(f)
20
21 assert a == b
22 assert c == d.replace("א", "x")
23 assert e[1] == f[1]
24 assert e[3] == f[3]