Skip to content

clarify 'strict' behaviour in tap tests #2703

@TarantoolBot

Description

@TarantoolBot

Product: Tarantool
Since: product version
Audience/target: dev
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/tap/
SME: @ olegrok


Defined for root tap object strict mode will be the same for all
subtests.

Example:

t = require('tap').test('123')
t.strict = true

t:is_deeply({a = box.NULL}, {}) -- false

t:test('subtest', function(t)
    t:is_deeply({a = box.NULL}, {}) -- also false
end)

Requested by @olegrok in tarantool/tarantool@676582c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    behavior change[nature] Сhange in existing behaviorexampleProblem with a code example.reference[location] Tarantool manual, Reference partserver[area] Task relates to Tarantool's server (core) functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions