So moving these comments from Frank over here …
People from Zotero, Mendeley, etc. listen up! We need feedback on the
excellent test suite work that Frank has been doing; otherwise, you’re
stuck with our decisions.
On how to express quotes in the result. I use unicode characters, and Frank …
Re proper quotes, the tests are HTML, quotes are expressed as entities.
I have a general aversion to entities (what’s the point; we have
unicode?), but for the moment won’t object. I may come back to this
though.
The tests should be kept in single files. It would be annoying to have to scratch around in parallel filesystem hierarchies when writing, editing or interpreting tests (I’ve written about eighty of them so far, but we’ll need five or six times that number eventually, so ease of editing is important).
OK, here’s the big question. I agree that whatever solution needs to
be easy to edit and interpret (by both humans and machines). But it
also needs to be easy to distribute and use.
To review; current test suite works like so if you’d like to add a test:
-
write the test case in Frank’s syntax, add to the std/human dir.
-
run grind.py to get the humans file converted to json (in the
std/machines dir).
So there are two directories full of test cases: one for human
editing, and the other for machine reading.
The only difference between them is that one is valid JSON, and the
other is not.
My point is this: it’s awkward to have two directories of tests, when
the only reason this is necessary is because of forcing the CSL
fragments into JSON.
So rather than have a single …
/sort_test.json
… file, I’m wondering about:
/sort_test.json
/sort_test.csl
In other words, only the CSL fragment would get moved into a separate
file. Everything else would remain as json.
Advantage?
-
no need for separate humans and machines dirs.
-
csl fragments can be validated
I don’t see this as any particular burden.
I also don’t have a super strong opinion on this; am just looking
towards the horizon and wondering which approach suits our needs best.
It might be that we defer this decision until later; when the test
suite is “done.”
Bruce