Skip to content

tap: inconsistent work with box.NULL #4125

@olegrok

Description

@olegrok

Tarantool version: 2.1.1-185-gf583b6c82

tarantool> t = require('tap').test('123')
TAP version 13
---
...

tarantool> t:is_deeply({a = box.NULL}, {})
ok - nil
---
- true
...

tarantool> t:is_deeply({}, {a = box.NULL})
not ok - nil
  ---
  filename: builtin/box/console.lua
  trace:
  - line: -1
    source: =[C]
    filename: eval
    what: C
    namewhat: global
    name: pcall
    src: '[C]'
  - line: 130
    source: '@builtin/box/console.lua'
    filename: builtin/box/console.lua
    what: Lua
    namewhat: method
    name: eval
    src: builtin/box/console.lua
  - line: 395
    source: '@builtin/box/console.lua'
    filename: builtin/box/console.lua
    what: Lua
    namewhat: upvalue
    name: repl
    src: builtin/box/console.lua
  - line: 440
    source: '@builtin/box/console.lua'
    filename: builtin/box/console.lua
    what: Lua
    namewhat: 
    src: builtin/box/console.lua
  line: 440
  expected: key a
  got: nil
  ...
---
- false
...

Expect that both variants return false

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions