Re: [PATCH v3 2/2] t0028: add more tests

2 messages, 2 authors, 2019-09-30 · open the first message on its own page

Re: [PATCH v3 2/2] t0028: add more tests

From: Junio C Hamano <hidden>
Date: 2019-09-28 04:48:36

"Alexandr Miloslavskiy via GitGitGadget" [off-list ref]
writes:
From: Alexandr Miloslavskiy <redacted>

After I discovered that UTF-16-LE-BOM test was bugged, I decided that
s/bugged/buggy/ perhaps?  Usually people do not place hidden
listening devices in tests ;-)
better tests are required. Possibly the best option here is to compare
git results against hardcoded ground truth.
...
+test_commit_utf8_checkout_other "UTF-8"        "Test Тест" "\124\145\163\164\040\320\242\320\265\321\201\321\202"
+test_commit_utf8_checkout_other "UTF-16LE"     "Test Тест" "\124\000\145\000\163\000\164\000\040\000\042\004\065\004\101\004\102\004"
+test_commit_utf8_checkout_other "UTF-16BE"     "Test Тест" "\000\124\000\145\000\163\000\164\000\040\004\042\004\065\004\101\004\102"
+test_commit_utf8_checkout_other "UTF-16LE-BOM" "Test Тест" "\377\376\124\000\145\000\163\000\164\000\040\000\042\004\065\004\101\004\102\004"
+test_commit_utf8_checkout_other "UTF-16BE-BOM" "Test Тест" "\376\377\000\124\000\145\000\163\000\164\000\040\004\042\004\065\004\101\004\102"
+test_commit_utf8_checkout_other "UTF-32LE"     "Test Тест" "\124\000\000\000\145\000\000\000\163\000\000\000\164\000\000\000\040\000\000\000\042\004\000\000\065\004\000\000\101\004\000\000\102\004\000\000"
+test_commit_utf8_checkout_other "UTF-32BE"     "Test Тест" "\000\000\000\124\000\000\000\145\000\000\000\163\000\000\000\164\000\000\000\040\000\000\004\042\000\000\004\065\000\000\004\101\000\000\004\102"

Re: [PATCH v3 2/2] t0028: add more tests

From: Alexandr Miloslavskiy <hidden>
Date: 2019-09-30 07:29:45

On 28.09.2019 6:47, Junio C Hamano wrote:
s/bugged/buggy/ perhaps?  Usually people do not place hidden
listening devices in tests ;-)
Yes, hinting those hidden listening devices was an oversight. Thanks for 
your help in putting them back undercover!

I understand that you already changed the commit message, so I'm not 
submitting updated patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help