The commit also removes the JSON test, because JSON escaping is now done
with the Windows test due to the use of backslashes in Windows path
names.
And it adds some documentation about how the test inputs were created,
because it's not obvious and worth recording.
Fixes#4.
This is necessary for DMD, which puts file names and function names
within JSON strings.
For testing I had to add a new test binary with the awkward name of
`example"json`, which requires escaping of the '"' char.
- Change the test to use C binary, which is 17 KB, compared to 2.6 MB
for the Rust binary. (Due to Rust's use of static linking.)
- Rename the binary from `example` to `example-linux`, to allow for
other platforms in the future. Likewise renames the test function from
`test1` to `test_linux`.
- Add (commented out) the `eprintln!` statements from which I
constructed the test.
- Change the `tests/EXAMPLE` entry to `tests/no-such-file`. On Windows
and Mac this test was failing because those OSes have case-insensitive
filenames, and so `EXAMPLE` was matching the existing `example` file!
(The abovementioned renaming of `example` to `example-linux` would
have been enough, but `no-such-file` is clearer in general.)
- Add a license notice to `src/tests.rs`.