[Tarantool-patches] [PATCH] sql: Update POSITION() tests

Mergen Imeev imeevma at tarantool.org
Thu Dec 2 13:35:17 MSK 2021


Hi! Thank you for the patch! See 5 comments below.

1. Please add a hyperlink to the branch and a hyperlink to the issue when
submitting the patch. Or you can use PR. Better to use PR as your branch will
be checked out in CI.

2. Why do you need these changes? How are these changes related to the KMP?

2. Tests 1.0.1 and 1.0.3 are similar to 1.13, 1.0.5 is similar to 1.9 and 1.0.6
is similar to 1.8. Tests 1.0.2 and 1.0.4 have something new, but you can simply
add them to the end of the file. The same about changes in tests 1.63-1.65 -
you can add new tests at the end of the file instead of changing old tests.

3. Please use do_execsql_test() instead of do_test(...execsql()...).

On Mon, Nov 22, 2021 at 12:41:22AM +0300, Lord via Tarantool-patches wrote:
> diff --git a/test/sql-tap/position.test.lua b/test/sql-tap/position.test.lua
> index 6a96ed9bc..d35f00122 100755
> --- a/test/sql-tap/position.test.lua
> +++ b/test/sql-tap/position.test.lua
> @@ -1,6 +1,66 @@
>  #!/usr/bin/env tarantool
>  local test = require("sqltester")
> -test:plan(80)
> +test:plan(86)
> +
> +test:do_test(
> +    "position-1.0.1",
> +    function()
> +        return test:execsql "SELECT position('ststs', 'statemenstrststs');"
4. Please use parentheses after execsql(). Here and below.

> +test:do_execsql_test(           --TODO
5. What about this '--TODO'? Why do you need to change this test?



More information about the Tarantool-patches mailing list