You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Strategies.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ var diffs = DiffBuilder
46
46
.Build();
47
47
```
48
48
49
+
Read more about each of the strategies below, including some that are not part of the default set.
50
+
49
51
## Filter strategies
50
52
These are the built-in filter strategies.
51
53
@@ -99,7 +101,7 @@ var diffs = DiffBuilder
99
101
```
100
102
101
103
#### Forward-searching node matcher
102
-
The forward-searching node-matcher strategy will only match control nodes with test nodes, if their `NodeName` match. It does this by taking one control node at the time, and searching from the previously matched test node until it finds a match. If it does not, it reports the control nodeas *missing*. After, any unmatched test nodes is reported as *unexpected*.
104
+
The forward-searching node-matcher strategy will only match control nodes with test nodes, if their `NodeName` match. It does this by taking one control node at the time, and searching after the previously matched test node until it finds a match. If it does not, continues with the next control node, and the unmatched control node is marked as *missing*. After, any unmatched test nodes is marked as *unexpected*.
103
105
104
106
The follow JavaScript-ish-code illustrates how the algorithm works:
0 commit comments