Lottie-Windows/tests
Simeon 11c75f8865
Fix some missing simplifications in Composition expressions. (#429)
* Fix some missing simplifications in Composition expressions.

The logic for determining whether an expression could be simplified was sometimes wrong because it ended up hitting an overridden equality operator which compared the already-simplified values.

Also fixed the test script to look at last write time when determining which is the latest build of LottieGen.exe to run. We were looking at creation time, but it turns out that when the compiler builds, it doesn't cause the creation time to be updated if the output file previously existed. Our test script could accidentally use a release build when the latest build was actually a debug build, resulting in the test running on an old build.

* Replace the IsAtomic bool with a more generalized Precedence concept.

Without this, it was getting unwieldy to handle all the cases of precedence. Now we're removing parentheses more aggressively, so the expressions will be more efficient to parse.

* Eliminate some unnecessary whitespace in Min and Max expression functions.
2021-03-05 14:05:00 -08:00
..
CompareDirectories.cmd Adding LottieGenCorpus for generating output for testing. (#34) 2019-01-02 14:06:52 -08:00
CompareDirectories.ps1 Fix the CompareDirectories script - it was not showing the directory name, and it didn't find files that were only in the second directory. (#69) 2019-02-23 12:01:45 -08:00
CompileDirectory.cmd Add support for LayerVisual and DropShadow Composition types. Cleanup. (#390) 2020-11-20 14:37:40 -08:00
CompileDirectory.rsp Point to a newer version of the platform for running tests. (#273) 2020-05-28 18:39:48 -07:00
LottieGenCorpus.cmd Adding LottieGenCorpus for generating output for testing. (#34) 2019-01-02 14:06:52 -08:00
LottieGenCorpus.ps1 Fix some missing simplifications in Composition expressions. (#429) 2021-03-05 14:05:00 -08:00
Mocks.cs Generate version-dependent code. (#165) 2019-10-28 10:49:42 -07:00