ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Try data driven test in ruma using macro_rules. #168

Open farodin91 opened 7 years ago

jimmycuadra commented 7 years ago

Can you provide some detail on what you have in mind in the issue description?

farodin91 commented 7 years ago

For example: https://github.com/ruma/ruma/blob/master/src/api/r0/profile.rs#L340 and https://github.com/ruma/ruma/blob/master/src/api/r0/profile.rs#L361 are nearly the same test. We could write one macro to represent both and then generate these tests