mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
79713ef647
floats and integers can be replaced with each other jsonpath "$.count" equals 5 jsonpath "$.count" equals 5.0
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:4:0
|
|
|
|
|
4 | header "content-type" equals "XXX"
|
|
| actual: string <text/html; charset=utf-8>
|
|
| expected: string <XXX>
|
|
|
|
|
|
|
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:5:0
|
|
|
|
|
5 | jsonpath "$.id" equals "000001"
|
|
| actual: none
|
|
| expected: string <000001>
|
|
|
|
|
|
|
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:6:0
|
|
|
|
|
6 | jsonpath "$.values" includes 100
|
|
| actual: [int <1>, int <2>, int <3>]
|
|
| expected: includes int <100>
|
|
|
|
|
|
|
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:7:0
|
|
|
|
|
7 | jsonpath "$.values" not contains "Hello"
|
|
| actual: [int <1>, int <2>, int <3>]
|
|
| expected: not contains string <Hello>
|
|
| >>> types between actual and expected are not consistent
|
|
|
|
|
|
|
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:8:0
|
|
|
|
|
8 | jsonpath "$.count" greaterThan 5
|
|
| actual: int <2>
|
|
| expected: greater than int <5>
|
|
|
|
|
|
|
error: Assert Failure
|
|
--> tests/error_assert_value_error.hurl:9:0
|
|
|
|
|
9 | jsonpath "$.count" isFloat
|
|
| actual: int <2>
|
|
| expected: float
|
|
|
|
|
|