hurl/integration/tests_ok/predicates-string.hurl

24 lines
415 B
Plaintext
Raw Normal View History

2020-08-27 10:07:46 +03:00
GET http://localhost:8000/predicates-string
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
[Asserts]
body == "Hello World!"
2020-08-27 10:07:46 +03:00
body startsWith "Hello"
2021-07-16 09:13:23 +03:00
body endsWith "!"
2020-08-27 10:07:46 +03:00
body contains "llo"
body matches "Hello [a-zA-Z]+!"
body matches /Hello [a-zA-Z]+!/
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/predicates-string-empty
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
[Asserts]
body == ""
2020-08-27 10:07:46 +03:00
body exists
2021-09-21 07:36:53 +03:00
GET http://localhost:8000/predicates-string-unicode
2022-11-11 16:25:00 +03:00
HTTP 200
2021-09-21 07:36:53 +03:00
[Asserts]
body == "\u{2708}"
2022-09-08 19:03:10 +03:00
bytes count == 3