summaryrefslogtreecommitdiff
path: root/test/test_highlight_position_chunking.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-31 13:14:39 +0100
committerw0rp <devw0rp@gmail.com>2017-05-31 13:14:39 +0100
commitab50b3a88a741ac86315ae3e716815c6725b159b (patch)
tree7bfed55d7e6537db505495a996133ec2f654b090 /test/test_highlight_position_chunking.vader
parent676a4049b35f7e4faa4ea55ee8a371a44cf1ab61 (diff)
downloadale-ab50b3a88a741ac86315ae3e716815c6725b159b.zip
Fix #604 - Support highlights spanning many lines
Diffstat (limited to 'test/test_highlight_position_chunking.vader')
-rw-r--r--test/test_highlight_position_chunking.vader34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/test_highlight_position_chunking.vader b/test/test_highlight_position_chunking.vader
index 120e294d..cd9161b5 100644
--- a/test/test_highlight_position_chunking.vader
+++ b/test/test_highlight_position_chunking.vader
@@ -9,68 +9,68 @@ Execute(CreatePositions() should support multiple character matches on a single
AssertEqual [[[2, 5, 6]]], ale#highlight#CreatePositions(2, 5, 1, 10)
Execute(CreatePositions() should support character matches two lines):
- AssertEqual [[[1, 5, 4294967296], [2, 1, 10]]], ale#highlight#CreatePositions(1, 5, 2, 10)
+ AssertEqual [[[1, 5, 1073741824], [2, 1, 10]]], ale#highlight#CreatePositions(1, 5, 2, 10)
Execute(CreatePositions() should support character matches across many lines):
" Test chunks from 1,3 to 1,17
AssertEqual [
- \ [[1, 5, 4294967296], 2, [3, 1, 10]],
+ \ [[1, 5, 1073741824], 2, [3, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 3, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, [4, 1, 10]],
+ \ [[1, 5, 1073741824], 2, 3, [4, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 4, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, [5, 1, 10]],
+ \ [[1, 5, 1073741824], 2, 3, 4, [5, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 5, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, [6, 1, 10]],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, [6, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 6, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, [7, 1, 10]],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, [7, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 7, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, [8, 1, 10]],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, [8, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 8, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [[9, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 9, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, [10, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 10, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, [11, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 11, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, [12, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 12, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, 12, [13, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 13, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, 12, 13, [14, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 14, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, 12, 13, 14, [15, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 15, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, 12, 13, 14, 15, [16, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 16, 10)
AssertEqual [
- \ [[1, 5, 4294967296], 2, 3, 4, 5, 6, 7, 8],
+ \ [[1, 5, 1073741824], 2, 3, 4, 5, 6, 7, 8],
\ [9, 10, 11, 12, 13, 14, 15, 16],
\ [[17, 1, 10]],
\], ale#highlight#CreatePositions(1, 5, 17, 10)
" Test another random sample at higher lines.
AssertEqual [
- \ [[21, 8, 4294967296], 22, 23, 24, 25, 26, 27, 28],
+ \ [[21, 8, 1073741824], 22, 23, 24, 25, 26, 27, 28],
\ [29, 30, 31, 32, 33, 34, 35, 36],
\ [[37, 1, 2]],
\], ale#highlight#CreatePositions(21, 8, 37, 2)