hurl/integration/tests/predicates-string.hurl
2021-09-25 09:17:33 +02:00

23 lines
411 B
Plaintext

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