MichalStrehovsky / iltrim

MIT License
9 stars 1 forks source link

Add simple unit test support #10

Closed agocke closed 3 years ago

MichalStrehovsky commented 3 years ago

Could you keep the repro program for now? It's a good way to quickly try out things - one just makes a change, builds the project, runs iltrim with that as input, and inspects the result.

The current open issues in the repo refer to the repro project with instructions such as "make this change to Program.cs, notice output is broken (or that we assert and fail), and fix what's broken".

Eventually maybe we won't need it, but for example NativeAOT has a repro project ever since JanK added it 6 years ago and I've been using it almost every week.

agocke commented 3 years ago

I put the repro program in the test (it actually is the test now).

Is there a particular structure you would like for it? Maybe adding another project that just builds the repro app?

MichalStrehovsky commented 3 years ago

Is there a particular structure you would like for it? Maybe adding another project that just builds the repro app?

Yup, just to have a separate project that is linked from the SLN. It's good to have something where one can inspect both the inputs and outputs as a thing on the filesystem.