Closed torfjelde closed 1 month ago
@bdarcus are there any tests for this stuff? Didn't see anything obvious from a quick glance.
are there any tests for this stuff?
Do you mean in this project, or more generally?
If the former, this is an example (see #780) where we should probably add some.
For the project, and specifically of the display transform functions:)
But aight; should I just make a new ert-deftest
for the short- and full-name methods? Are there an existing list of author names that I could maybe draw from as test-cases, or should I add some?
Are there an existing list of author names that I could maybe draw from as test-cases, or should I add some?
There isn't, but I can give you an example of a key type that I included when developing the existing function; a corporate (organizational) name:
World Bank
That shouldn't be shortened.
Now that I think about it, you should be aware of the discussion here, in part because OP has some test names, but also because it's about refactoring that function:
So what do we want to do with this, given @aikrahguzar's alternative?
https://github.com/emacs-citar/citar/issues/805#issuecomment-1783892531
So what do we want to do with this, given @aikrahguzar's alternative?
I'm going to close this, and we can consider @aikrahguzar's alernative.
Generalizes citar--shorten-names + implements rendering of full names as discussed in #805.
Replaces #807 as I did not follow the contribution guidelines in #807.