Mercurial > projects > dstress
annotate run/slice_03.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 6e4063f99377 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
179 | 5 // @author@ Stewart Gordon <smjg_1998@yahoo.com> |
2 | 6 // @date@ 2004-09-15 |
140 | 7 // @uri@ news:ci94i9$1352$2@digitaldaemon.com |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1849 |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
3
diff
changeset
|
9 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
3
diff
changeset
|
10 module dstress.run.slice_03; |
2 | 11 |
12 int main(){ | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
3
diff
changeset
|
13 char[] array; |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
3
diff
changeset
|
14 array.length=4; |
2 | 15 char letter = 'a'; |
3 | 16 array[0..4]=letter; |
2 | 17 assert(array[0]=='a'); |
18 assert(array[1]=='a'); | |
19 assert(array[2]=='a'); | |
20 assert(array[3]=='a'); | |
21 | |
22 return 0; | |
23 } |