Emmanuel Gil Peyrot
0d58b56920
ecaps2: Use the Error type instead of () or String.
2019-12-01 17:00:20 +01:00
3c92f849d3
pubsub: Add serialization test for configure element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-01 03:16:24 +01:00
Paul Fariello
689b7cf836
Fix serialisation of Optional field
2019-12-01 03:16:24 +01:00
Paul Fariello
3a2027411e
mam: Fix test on serialisation
2019-12-01 03:16:24 +01:00
Paul Fariello
8d41959497
jingle: Add test on serialisation
2019-12-01 03:16:24 +01:00
1c5551a917
minidom: Implement PartialEq manually for Node and Element
...
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node
and Element's PartialEq implementation. Thanks Astro!
It's a lot more useful in tests to use `assert_eq!` than `assert!`, so
we get both items compared (left and right) instead of a "it failed."
message.
This "breaks" comparison for these two structs in the sense that it is
not strict object comparison anymore but it ensures that namespaces are
all present in the compared objects.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-29 16:02:23 +01:00
f3a18711e6
parsers/mam: add ignored failing test for serialization
...
Add failing test for #20 . Thanks Paul.
Now that needs fixing..
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-22 17:34:53 +01:00
141d11ad38
minidom: Don't prepend xml prelude in writer. Add new API
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-10 01:01:42 +01:00
5a254bca1a
parsers/jingle: fixes struct size in tests
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:32:11 +01:00
70f3ef5523
parsers: Use new NSChoice API from minidom. Fixes tests
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:31:36 +01:00
Emmanuel Gil Peyrot
877d5c21da
minidom: Add a blanket impl for From<Into<Element>> for Node.
2019-11-03 18:49:11 +01:00
a104ebc3f6
Rustfmt pass, and rustfmt --check in CI"
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:36:02 +02:00
2dd116c0e8
Update repo and homepage in Cargo.toml files
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-20 01:04:22 +02:00
dc76f296de
Prepare for merge: Move all xmpp-parsers files into xmpp-parsers/
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:47:10 +02:00