summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-09-25 13:57:34 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-09-25 13:57:34 +0000
commitebc941da6204070eb62417102c5315270b1f0104 (patch)
treefd98fc4ca76cbc2bfa329da5c38b07810314cce4 /docs
parent7f21ad2b6a7cd0a75643c354efa2c5c8c7e52afb (diff)
tubes proto-XEP: include test cases for the unique name algorithm
Diffstat (limited to 'docs')
-rw-r--r--docs/tubes.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/tubes.xml b/docs/tubes.xml
index 9ba9de509..74328fdfc 100644
--- a/docs/tubes.xml
+++ b/docs/tubes.xml
@@ -653,4 +653,26 @@
</xs:schema>
]]></code>
</section1>
+<section1 topic='Appendix: test data for D-Bus unique name algorithm'>
+ <p>The string "short" produces the unique name ":2.c2hvcnQA".</p>
+ <p>The string "FirstWitch", as used in the examples, produces the
+ unique name ":2.Rmlyc3RXaXRjaAAA".</p>
+ <p>The string "Second witch", as used in the examples, produces the
+ unique name ":2.U2Vjb25kIHdpdGNo".</p>
+
+ <p>The string consisting of 18 repetitions of "0123456789" followed by
+ "012345" (186 characters) produces a unique name consisting of ":2.",
+ followed by 6 repetitions of the 40-character string
+ "MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5", followed by "MDEyMzQ1".</p>
+
+ <p>The string consisting of 18 repetitions of "0123456789" followed by
+ "0123456" (187 characters) produces a unique name consisting of ":2.",
+ followed by 5 repetitions of the 40-character string above, followed by
+ "MDEyMzQ1Njc4OTAxMjM0NTY3OEVd9C5NgmmRD6jp1ftG6XUEc11x".</p>
+
+ <p>The string consisting of 20 repetitions of "0123456789" (200 characters)
+ produces a unique name consisting of ":2.", followed by 5 repetitions of
+ the 40-character string above, followed by
+ "MDEyMzQ1Njc4OTAxMjM0NTY3OO-utwRnwcoUFhnJVMKg5pm9Hxal".</p>
+</section1>
</xep>