aboutsummaryrefslogtreecommitdiffstats
path: root/lay/strain/solve_test.go
Commit message (Collapse)AuthorAgeFilesLines
* lay/strain: replace Solver mutex with channelsSam Anthony5 days1-10/+75
| | | | | | | | | Partially reverts 483236742ddcd7883b5f9cff92244129274aa79c. Solver still closes itself automatically, but reverted to using request/reply channels. Mutex was becoming annoying to manage, as expected. TODO: TestRows fails intermittently due to constraint channels not being flushed when Solve() is called.
* lay/strain: add default constraints to SolverSam Anthony12 days1-11/+25
|
* lay/strain: use synctestSam Anthony12 days1-33/+37
|
* lay/strain: simplify Solver internal synchronizationSam Anthony13 days1-9/+51
| | | | | | | | Replaced the AddConstraint() and Solve() methods' request/reply channels, used a mutex instread. Solver now closes the fieldConstrs channel automatically; removed the Close() method. Generally tidied up.
* lay/strain: represent rectangles as (origin, size)Sam Anthony13 days1-0/+105