25 ms·
With tests, sometimes you want to embed test data, as a here-document so that tests don't get separated from minimal datasets needed. In perl it was customary t
by nonrandomstring 4y ago
With tests, sometimes you want to embed test data, as a here-document
so that tests don't get separated from minimal datasets needed. In
perl it was customary to use <<"EOF";...EOF and """ triple quotes """
serve similar utility in Python. What's the deal in R? Just make a vector
in the test?
- civilized 4y agoThe strategies I usually see are (1) use a built-in dataset (2) make the data at the beginning of the example.