forked from MapComplete/MapComplete
Add extra optimization on And, add test
This commit is contained in:
parent
2f3886d2e0
commit
819f65e18d
3 changed files with 97 additions and 55 deletions
|
@ -30,6 +30,12 @@ describe("Tag optimalization", () => {
|
|||
const opt = t.optimize()
|
||||
expect(opt).eq(true)
|
||||
})
|
||||
|
||||
it("should return false on conflicting tags", () => {
|
||||
const t = new And([new Tag("key","a"), new Tag("key","b")])
|
||||
const opt = t.optimize()
|
||||
expect(opt).eq(false)
|
||||
})
|
||||
|
||||
it("with nested ors and common property should be extracted", () => {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue