| | @@ -1433,10 +1433,85 @@ |
| 1433 | 1433 | |
| 1434 | 1434 | ############################################################################### |
| 1435 | 1435 | |
| 1436 | 1436 | fossil test-th-eval {string is integer 0xC0DEF00Z} |
| 1437 | 1437 | test th1-string-is-31 {$RESULT eq "0"} |
| 1438 | + |
| 1439 | +############################################################################### |
| 1440 | + |
| 1441 | +fossil test-th-eval {string index "" -1} |
| 1442 | +test th1-string-index-1 {$RESULT eq ""} |
| 1443 | + |
| 1444 | +############################################################################### |
| 1445 | + |
| 1446 | +fossil test-th-eval {string index "" 0} |
| 1447 | +test th1-string-index-2 {$RESULT eq ""} |
| 1448 | + |
| 1449 | +############################################################################### |
| 1450 | + |
| 1451 | +fossil test-th-eval {string index "" 1} |
| 1452 | +test th1-string-index-3 {$RESULT eq ""} |
| 1453 | + |
| 1454 | +############################################################################### |
| 1455 | + |
| 1456 | +fossil test-th-eval {string index "" 2} |
| 1457 | +test th1-string-index-4 {$RESULT eq ""} |
| 1458 | + |
| 1459 | +############################################################################### |
| 1460 | + |
| 1461 | +fossil test-th-eval {string index "" end} |
| 1462 | +test th1-string-index-5 {$RESULT eq ""} |
| 1463 | + |
| 1464 | +############################################################################### |
| 1465 | + |
| 1466 | +fossil test-th-eval {string index A -1} |
| 1467 | +test th1-string-index-6 {$RESULT eq ""} |
| 1468 | + |
| 1469 | +############################################################################### |
| 1470 | + |
| 1471 | +fossil test-th-eval {string index A 0} |
| 1472 | +test th1-string-index-7 {$RESULT eq "A"} |
| 1473 | + |
| 1474 | +############################################################################### |
| 1475 | + |
| 1476 | +fossil test-th-eval {string index A 1} |
| 1477 | +test th1-string-index-8 {$RESULT eq ""} |
| 1478 | + |
| 1479 | +############################################################################### |
| 1480 | + |
| 1481 | +fossil test-th-eval {string index A 2} |
| 1482 | +test th1-string-index-9 {$RESULT eq ""} |
| 1483 | + |
| 1484 | +############################################################################### |
| 1485 | + |
| 1486 | +fossil test-th-eval {string index A end} |
| 1487 | +test th1-string-index-10 {$RESULT eq "A"} |
| 1488 | + |
| 1489 | +############################################################################### |
| 1490 | + |
| 1491 | +fossil test-th-eval {string index ABC -1} |
| 1492 | +test th1-string-index-11 {$RESULT eq ""} |
| 1493 | + |
| 1494 | +############################################################################### |
| 1495 | + |
| 1496 | +fossil test-th-eval {string index ABC 0} |
| 1497 | +test th1-string-index-12 {$RESULT eq "A"} |
| 1498 | + |
| 1499 | +############################################################################### |
| 1500 | + |
| 1501 | +fossil test-th-eval {string index ABC 1} |
| 1502 | +test th1-string-index-13 {$RESULT eq "B"} |
| 1503 | + |
| 1504 | +############################################################################### |
| 1505 | + |
| 1506 | +fossil test-th-eval {string index ABC 2} |
| 1507 | +test th1-string-index-14 {$RESULT eq "C"} |
| 1508 | + |
| 1509 | +############################################################################### |
| 1510 | + |
| 1511 | +fossil test-th-eval {string index ABC end} |
| 1512 | +test th1-string-index-15 {$RESULT eq "C"} |
| 1438 | 1513 | |
| 1439 | 1514 | ############################################################################### |
| 1440 | 1515 | |
| 1441 | 1516 | fossil test-th-eval {markdown} |
| 1442 | 1517 | test th1-markdown-1 {$RESULT eq \ |
| 1443 | 1518 | |