homeserver icon indicating copy to clipboard operation
homeserver copied to clipboard

Try data driven test in ruma using macro_rules.

Open farodin91 opened this issue 8 years ago • 2 comments

farodin91 avatar Feb 13 '17 19:02 farodin91

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

jimmycuadra avatar Feb 13 '17 21:02 jimmycuadra

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

farodin91 avatar Feb 13 '17 21:02 farodin91