Update README.md

This commit is contained in:
James Booth
2015-05-27 23:14:19 +01:00
parent 7acf4f84e1
commit 7ae9fe8466

View File

@@ -62,7 +62,7 @@ stbbr_for("msg_21",
### Verify sent stanzas
To verify that you sent a particular stanza to Stabber:
```c
stbbr_verify(
stbbr_received(
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
"<body>I know, its a test.</body>"
"</message>"
@@ -71,7 +71,7 @@ stbbr_verify(
The above function returns 1 if the stanza has been received, and 0 if it hasn't.
The following function check that it was specifically the last stanza received:
```c
stbbr_verify_last(
stbbr_last_received(
"<message id=\"msg24415\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
"<body>I know, its a test.</body>"
"</message>"
@@ -79,7 +79,7 @@ stbbr_verify_last(
```
Both verifications allow for wildcards (*) as attribute values, for example, if you don't know the id's that are generated by your client:
```c
stbbr_verify(
stbbr_received(
"<message id=\"*\" to=\"buddy1@localhost/mobile\" type=\"chat\">"
"<body>I know, its a test.</body>"
"</message>"