Commit 66c53333 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Increase coverage even further.

parent 3ce6c164
......@@ -317,6 +317,158 @@ simple_expect "\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]\[0-9\] \[0-9\]\[0-9\]:\[0-9\]
simple_expect "35:53428"
simple_expect "50:57456"
l2g_send "I1"
# Insert 20 numbers in the range 1001..1020, simulating newly created
# texts.
l2g_send "a1 1001 201613"
l2g_send "a1 1002 202864"
l2g_send "a1 1003 203254"
l2g_send "a1 1004 203935"
l2g_send "a1 1005 204444"
l2g_send "a1 1006 205551"
l2g_send "a1 1007 205859"
l2g_send "a1 1008 206390"
l2g_send "a1 1009 206784"
l2g_send "a1 1010 207002"
l2g_send "a1 1011 207212"
l2g_send "a1 1012 207324"
l2g_send "a1 1013 207469"
l2g_send "a1 1014 207571"
l2g_send "a1 1015 208471"
l2g_send "a1 1016 208592"
l2g_send "a1 1017 209959"
l2g_send "a1 1018 211141"
l2g_send "a1 1019 211225"
l2g_send "a1 1020 213738"
# Delete the last texts in each block.
l2g_send "d1 1010"
l2g_send "d1 1020"
# Test that stepping past the delete text works.
l2g_send "n1 1008"
simple_expect "1009"
l2g_send "n1 1009"
simple_expect "1011"
l2g_send "n1 1010"
simple_expect "1011"
l2g_send "n1 1018"
simple_expect "1019"
l2g_send "n1 1019"
simple_expect "0"
l2g_send "n1 1020"
simple_expect "0"
l2g_send "n1 1021"
simple_expect "0"
l2g_send "n1 1022"
simple_expect "0"
l2g_send "i1 1010 1012"
simple_expect "1011:207212"
l2g_send "i1 1020 0"
# Trim the blocks one more from the tail. There are now two removed numbers.
l2g_send "d1 1009"
l2g_send "d1 1019"
l2g_send "n1 1007"
simple_expect "1008"
l2g_send "n1 1008"
simple_expect "1011"
l2g_send "n1 1009"
simple_expect "1011"
l2g_send "n1 1010"
simple_expect "1011"
l2g_send "n1 1017"
simple_expect "1018"
l2g_send "n1 1018"
simple_expect "0"
l2g_send "n1 1019"
simple_expect "0"
l2g_send "n1 1020"
simple_expect "0"
l2g_send "n1 1021"
simple_expect "0"
l2g_send "n1 1022"
simple_expect "0"
l2g_send "i1 1010 1012"
simple_expect "1011:207212"
l2g_send "i1 1020 0"
l2g_send "i1 1009 1012"
simple_expect "1011:207212"
l2g_send "i1 1019 0"
# Trim the blocks one more from the tail. There are now three removed numbers.
l2g_send "d1 1008"
l2g_send "d1 1018"
l2g_send "n1 1006"
simple_expect "1007"
l2g_send "n1 1007"
simple_expect "1011"
l2g_send "n1 1008"
simple_expect "1011"
l2g_send "n1 1009"
simple_expect "1011"
l2g_send "n1 1010"
simple_expect "1011"
l2g_send "n1 1017"
simple_expect "0"
l2g_send "n1 1018"
simple_expect "0"
l2g_send "n1 1019"
simple_expect "0"
l2g_send "n1 1020"
simple_expect "0"
l2g_send "n1 1021"
simple_expect "0"
l2g_send "n1 1022"
simple_expect "0"
l2g_send "i1 1010 1012"
simple_expect "1011:207212"
l2g_send "i1 1020 0"
l2g_send "i1 1009 1012"
simple_expect "1011:207212"
l2g_send "i1 1019 0"
l2g_send "i1 1008 1012"
simple_expect "1011:207212"
l2g_send "i1 1018 0"
# Remove the first entry in the second block
l2g_send "d1 1011"
l2g_send "n1 1006"
simple_expect "1007"
l2g_send "n1 1007"
simple_expect "1012"
l2g_send "n1 1008"
simple_expect "1012"
l2g_send "n1 1009"
simple_expect "1012"
l2g_send "n1 1010"
simple_expect "1012"
l2g_send "n1 1011"
simple_expect "1012"
l2g_send "i1 1010 1012"
l2g_send "i1 1009 1012"
l2g_send "i1 1008 1012"
l2g_send "i1 1007 1012"
simple_expect "1007:205859"
l2g_send "i1 1008 1013"
simple_expect "1012:207324"
l2g_send "D0"
l2g_send "D1"
l2g_stop
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