[PATCH 2 of 3] run-tests: support multiple cases in .t test

Jun Wu quark at fb.com
Wed May 17 00:11:10 EDT 2017


Excerpts from Yuya Nishihara's message of 2017-05-16 22:17:18 +0900:
> Fair enough. Then, using a namedtuple might slightly improve the code
> readability. It wasn't easy to read whether the "test" variable is a test
> object or a dict.

namedtuple seems to require all fields to exist, where the "case" is
actually optional. So a dict is more flexible.

I'll update variable names to make the code easier to read.


More information about the Mercurial-devel mailing list