Commit 63f3f7f9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test set-read-ranges.

parent 3cb73b21
......@@ -441,7 +441,11 @@ set_read_2 "1 { 15 18 }" "1 { 12 18 }"
set_read_2 "1 { 15 19 }" "1 { 12 19 }"
set_read_2 "1 { 20 21 }" "1 { 20 23 }"
set_read_2 "1 { 12 12 }" "1 { 12 14 }"
# Mark all remaining texts as read.
set_read_2 "4 { 4 6 8 11 15 16 19 21 }" "1 { 1 23 }"
# Increase each range by one in each end.
set_read_2 "4 { 3 6 8 11 15 16 19 21 }" "1 { 1 23 }"
set_read_2 "4 { 4 7 8 11 15 16 19 21 }" "1 { 1 23 }"
set_read_2 "4 { 4 6 7 11 15 16 19 21 }" "1 { 1 23 }"
......@@ -452,7 +456,37 @@ set_read_2 "4 { 4 6 8 11 15 16 18 21 }" "1 { 1 23 }"
set_read_2 "4 { 4 6 8 11 15 16 19 22 }" "1 { 1 23 }"
set_read_2 "4 { 4 6 8 11 15 16 19 23 }" "1 { 1 23 }"
untested "set-read-ranges (Bug 54)"
# Decrease each range by one in each end.
set_read_2 "4 { 5 6 8 11 15 16 19 21 }" "1 { 5 23 }"
set_read_2 "4 { 4 5 8 11 15 16 19 21 }" "2 { 1 5 7 23 }"
set_read_2 "4 { 4 6 9 11 15 16 19 21 }" "2 { 1 7 9 23 }"
set_read_2 "4 { 4 6 8 10 15 16 19 21 }" "2 { 1 10 12 23 }"
set_read_2 "4 { 4 6 8 11 16 16 19 21 }" "2 { 1 14 16 23 }"
set_read_2 "4 { 4 6 8 11 15 15 19 21 }" "2 { 1 15 17 23 }"
set_read_2 "4 { 4 6 8 11 15 16 20 21 }" "2 { 1 18 20 23 }"
set_read_2 "4 { 4 6 8 11 15 16 19 20 }" "1 { 1 20 }"
# A few other test cases.
set_read_2 "2 { 6 6 8 8 }" "1 { 6 8 }"
set_read_2 "3 { 6 6 8 8 9 11 }" "1 { 6 14 }"
set_read_2 "0 { }" "0 \\*"
set_read_2 "1 { 1 1 }" "1 { 1 3 }"
set_read_2 "1 { 1 2 }" "1 { 1 3 }"
set_read_2 "1 { 1 3 }" "1 { 1 3 }"
set_read_2 "1 { 2 2 }" "1 { 1 3 }"
set_read_2 "1 { 2 3 }" "1 { 1 3 }"
set_read_2 "1 { 3 3 }" "1 { 1 3 }"
set_read_2 "1 { 1 4 }" "1 { 1 4 }"
set_read_2 "1 { 2 4 }" "1 { 1 4 }"
set_read_2 "1 { 3 4 }" "1 { 1 4 }"
set_read_2 "1 { 4 4 }" "1 { 1 4 }"
set_read_2 "1 { 3 5 }" "1 { 1 5 }"
set_read_2 "1 { 3 5 }" "1 { 1 5 }"
set_read_2 "2 { 3 5 20 21 }" "2 { 1 5 20 23 }"
set_read_2 "3 { 8 11 15 16 19 21 }" "1 { 7 23 }"
set_read_2 "3 { 8 11 15 15 19 21 }" "2 { 7 15 17 23 }"
set_read_2 "2 { 10 11 15 15 }" "1 { 10 15 }"
set_read_2 "2 { 10 12 15 15 }" "1 { 10 15 }"
system "kill -HUP $lyskomd_pid"
client_death 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment