From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit] test: add test for `string.char('%c', 0)`
Date: Thu, 26 Jan 2023 10:08:16 +0300 [thread overview]
Message-ID: <Y9Im4DGXqAuWUHvk@root> (raw)
In-Reply-To: <1674573986.547093835@f164.i.mail.ru>
Hi, Maxim!
Thanks for the review!
On 24.01.23, Maxim Kokryashkin wrote:
>
> Hi, Sergey!
> Thanks for the patch!
> LGTM, except for the single nit regarding the commit title.
> I believe, it should be the `string.format` instead of `string.char`.
Nice catch!
Fixed! Thanks!
Branch is force-pushed.
> --
> Best regards,
> Maxim Kokryashkin
>
>
> >
> >>This patch adds the test for the commit
> >>430d9f8f7ebb779948dbd43944b876b1a3f58551 ("Fix string.format("%c",
> >>0)."). Although, the issue affects 2.0 branch only, there is no need to
> >>fix it. Nevertheless, the test is required to avoid regressions in the
> >>future.
> >>
> >>Part of tarantool/tarantool#8069
> >>---
> >>
> >>PR: https://github.com/tarantool/tarantool/pull/8189
> >>Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-378-string-format-c-null-char-full-ci
> >>Issues:
> >>* https://github.com/tarantool/tarantool/issues/8069
> >>* https://github.com/LuaJIT/LuaJIT/issues/378
> >>
> >> .../lj-378-string-format-c-null-char.test.lua | 11 +++++++++++
> >> 1 file changed, 11 insertions(+)
> >> create mode 100644 test/tarantool-tests/lj-378-string-format-c-null-char.test.lua
> >>
> >>diff --git a/test/tarantool-tests/lj-378-string-format-c-null-char.test.lua b/test/tarantool-tests/lj-378-string-format-c-null-char.test.lua
> >>new file mode 100644
> >>index 00000000..15cefadf
> >>--- /dev/null
> >>+++ b/test/tarantool-tests/lj-378-string-format-c-null-char.test.lua
> >>@@ -0,0 +1,11 @@
> >>+local tap = require('tap')
> >>+
> >>+local test = tap.test('lj-378-string-format-c-null-char')
> >>+test:plan(1)
> >>+
> >>+-- Test file to check that there is no regression in
> >>+-- `string.format('%c', 0)` behaviour.
> >>+-- See also https://github.com/LuaJIT/LuaJIT/issues/378 .
> >>+
> >>+test:is(string.format('%c', 0), '\0', 'string.format %c on null char')
> >>+os.exit(test:check() and 0 or 1)
> >>--
> >>2.34.1
> >
--
Best regards,
Sergey Kaplun
next prev parent reply other threads:[~2023-01-26 7:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 16:23 Sergey Kaplun via Tarantool-patches
2023-01-24 15:26 ` Maxim Kokryashkin via Tarantool-patches
2023-01-26 7:08 ` Sergey Kaplun via Tarantool-patches [this message]
2023-01-26 14:39 ` Maxim Kokryashkin via Tarantool-patches
2023-02-02 7:01 ` sergos via Tarantool-patches
2023-02-20 9:57 ` Igor Munkin via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9Im4DGXqAuWUHvk@root \
--to=tarantool-patches@dev.tarantool.org \
--cc=m.kokryashkin@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit] test: add test for `string.char('\''%c'\'', 0)`' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox