Skip to content

Commit 9f04338

Browse files
committed
Add two tests.
1 parent 08dd8c7 commit 9f04338

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

check/features.frm

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,3 +1187,30 @@ else
11871187
assert runtime_error?('Could not create sort file: bad_path\xformxxx.sor')
11881188
end
11891189
*--#] TempSortDir_windows :
1190+
*--#[ tablebase_ro_1 :
1191+
Table,sparse,no1fill(1,3);
1192+
Fill no1fill(1) = 1;
1193+
Fill no1fill(2) = 2;
1194+
Fill no1fill(3) = 3;
1195+
TableBase "no1.tbl" create;
1196+
TableBase "no1.tbl" addto no1fill;
1197+
.end
1198+
Table,sparse,no2fill(1,3);
1199+
Fill no2fill(1) = 1;
1200+
Fill no2fill(2) = 2;
1201+
Fill no2fill(3) = 3;
1202+
.sort
1203+
TableBase "no1.tbl" load;
1204+
TestUse;
1205+
.sort
1206+
TableBase "no1.tbl" use;
1207+
Apply;
1208+
.sort
1209+
TableBase "no1.tbl" addto no2fill;
1210+
.end
1211+
assert runtime_error?('Tablebase with the name no1.tbl opened in read only mode')
1212+
*--#] tablebase_ro_1 :
1213+
*--#[ tablebase_ro_2 :
1214+
TableBase "no212.tbl" open, readonly;
1215+
assert runtime_error?('Trying to open non-existent TableBase in readonly mode: no212.tbl')
1216+
*--#] tablebase_ro_2 :

0 commit comments

Comments
 (0)