root/cobra/trunk/Tests/100-basics/066-indexing-in-string-subst.cobra
| Revision 1177, 170 bytes (checked in by chuck, 4 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | class Test |
| 2 | |
| 3 | def main is shared |
| 4 | |
| 5 | s as String = 'aoeu' |
| 6 | c as char = s[0] |
| 7 | assert c==c'a' |
| 8 | |
| 9 | assert '[s][s]'=='aoeuaoeu' |
| 10 | |
| 11 | # now the real test: |
| 12 | assert '[s[0]]'=='a' |
Note: See TracBrowser
for help on using the browser.



