mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
63 lines
1.1 KiB
YAML
63 lines
1.1 KiB
YAML
tests:
|
|
- name: "equality expression"
|
|
expect:
|
|
data:
|
|
hello: world
|
|
actual:
|
|
data:
|
|
hello: world
|
|
compare:
|
|
type: "expr"
|
|
expr: "actual == expect"
|
|
- name: "neg equality expr"
|
|
expect:
|
|
data:
|
|
hello: world
|
|
actual:
|
|
data:
|
|
hello: worlds
|
|
compare:
|
|
expr: "actual != expect"
|
|
- name: "subkey world"
|
|
expect:
|
|
data:
|
|
hi: world
|
|
actual:
|
|
data:
|
|
hello: world
|
|
compare:
|
|
expr: "actual.hello == expect.hi"
|
|
- name: "default compare"
|
|
expect:
|
|
data:
|
|
hello: world
|
|
actual:
|
|
data:
|
|
hello: world
|
|
- name: "default neg compare"
|
|
expect:
|
|
data:
|
|
hello: world
|
|
actual:
|
|
data:
|
|
hello: worlds
|
|
compare:
|
|
expr: "actual != expect"
|
|
- name: "key order doesnt matter for non literal"
|
|
expect:
|
|
data:
|
|
a: 1
|
|
b: 2
|
|
actual:
|
|
raw: '{"b":2,"a":1}'
|
|
- name: "key order does matter for literal"
|
|
expect:
|
|
data:
|
|
a: 1
|
|
b: 2
|
|
actual:
|
|
raw: '{"b":2,"a":1}'
|
|
compare:
|
|
literal: true
|
|
expr: "actual != expect"
|