repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3:libads: make use of talloc_stackframe() in ads_setup_tls_wrapping()
[Samba.git]
/
testdata
/
source-chars-bidi.py
blob
d728da503da39b4f6f2ff371df7dfe93046b8659
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
]