message-format-wg icon indicating copy to clipboard operation
message-format-wg copied to clipboard

Add :test:function, :test:select, and :test:format function definitions

Open eemeli opened this issue 1 year ago • 1 comments

CC @mradbourne

Given that we shouldn't rely on :number and :datetime producing exact results but we still want to ensure that our interfaces with them work, let's add :test:number and :test:plural as well-defined functions intended for tests only, with exactly defined behaviour.

This PR could be extended with test cases making use of these, but I figured it'd be more useful to consider the general case first, esp. in order to avoid conflicting with #767.

eemeli avatar Apr 15 '24 13:04 eemeli

As discussed during yesterday's call, it'd be better for the functions to more clearly depart from e.g. :number.

I also added details for what happens when a test:func value is used as an argument of another test:func expression.

eemeli avatar Apr 16 '24 08:04 eemeli