comparison tests/test-revset.t @ 29321:de4a80a2b45c

test-revset: fix test vector for ordering issue of matching() 592e0beee8b0 fixed matching() to preserve the order of the input set, but the test was incorrect. Given "A and B", "A" should be the input set to "B". But thanks to our optimizer, the test expression was rewritten as "(2 or 3 or 1) and matching(1 or 2 or 3)", therefore it was working well. Since I'm going to fix the overall ordering issue, the test needs to be adjusted to do the right thing.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Jun 2016 21:49:26 +0900
parents 22625884b15c
children 2188f170f5b6
comparison
equal deleted inserted replaced
29320:016a90152e9c 29321:de4a80a2b45c
1564 2 1564 2
1565 1 1565 1
1566 0 1566 0
1567 $ log '4::8 - 8' 1567 $ log '4::8 - 8'
1568 4 1568 4
1569 $ log 'matching(1 or 2 or 3) and (2 or 3 or 1)' 1569
1570 matching() should preserve the order of the input set:
1571
1572 $ log '(2 or 3 or 1) and matching(1 or 2 or 3)'
1570 2 1573 2
1571 3 1574 3
1572 1 1575 1
1573 1576
1574 $ log 'named("unknown")' 1577 $ log 'named("unknown")'