Re: unittest which uses a disk file

2019-01-16 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jan 17, 2019 at 12:58:20AM +, Victor Porton via Digitalmars-d-learn wrote: > This way I would make data duplication (data files distributed with > the source and the same data embedding as strings into my D sources). [...] You could use -J and string imports, perhaps? In any case, if

Re: unittest which uses a disk file

2019-01-16 Thread Victor Porton via Digitalmars-d-learn
This way I would make data duplication (data files distributed with the source and the same data embedding as strings into my D sources). Note that the source is multilingual (I am currently working on a multi-language bindings of a C library).

Re: unittest which uses a disk file

2019-01-16 Thread Neia Neutuladh via Digitalmars-d-learn
On Wed, 16 Jan 2019 21:07:24 +, Victor Porton wrote: > What is the rule for unittest which uses a file (containing example data > for testing) available only in the source distribution, not in binary > distribution? > > I am writing a library. The easy way of doing things is to define a versi

Re: unittest which uses a disk file

2019-01-16 Thread Victor Porton via Digitalmars-d-learn
On Wednesday, 16 January 2019 at 21:07:24 UTC, Victor Porton wrote: What is the rule for unittest which uses a file (containing example data for testing) available only in the source distribution, not in binary distribution? I am writing a library. The library has also a file main.d which is

Re: unittest which uses a disk file

2019-01-16 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jan 16, 2019 at 09:07:24PM +, Victor Porton via Digitalmars-d-learn wrote: > What is the rule for unittest which uses a file (containing example > data for testing) available only in the source distribution, not in > binary distribution? > > I am writing a library. > > The library ha

unittest which uses a disk file

2019-01-16 Thread Victor Porton via Digitalmars-d-learn
What is the rule for unittest which uses a file (containing example data for testing) available only in the source distribution, not in binary distribution? I am writing a library. The library has also a file main.d which is compiled only in DUB "application" configuration (I use this configu