hurl/integration/tests_ok/predicates-string.hurl
2022-04-01 14:43:11 +02:00

24 lines
431 B
Plaintext

GET http://localhost:8000/predicates-string
HTTP/1.0 200
[Asserts]
body == "Hello World!"
body startsWith "Hello"
body endsWith "!"
body contains "llo"
body matches "Hello [a-zA-Z]+!"
body matches /Hello [a-zA-Z]+!/
GET http://localhost:8000/predicates-string-empty
HTTP/1.0 200
[Asserts]
body == ""
body exists
GET http://localhost:8000/predicates-string-unicode
HTTP/1.0 200
[Asserts]
body == "\u{2708}"
bytes count equals 3