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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
f87ba6507260 added missing meta-data
thomask
parents: 179
diff changeset
1 // $HeadURL$
f87ba6507260 added missing meta-data
thomask
parents: 179
diff changeset
2 // $Date$
f87ba6507260 added missing meta-data
thomask
parents: 179
diff changeset
3 // $Author$
f87ba6507260 added missing meta-data
thomask
parents: 179
diff changeset
4
179
55a2c755d699 1) fixed html mime settings
thomask
parents: 140
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
2
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
6 // @date@ 2004-09-15
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 70
diff changeset
7 // @uri@ news:ci94i9$1352$2@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
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
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
11
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
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
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
15 char letter = 'a';
3
b374f71310ea fixed typo in slice_03
thomask
parents: 2
diff changeset
16 array[0..4]=letter;
2
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
17 assert(array[0]=='a');
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
18 assert(array[1]=='a');
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
19 assert(array[2]=='a');
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
20 assert(array[3]=='a');
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
21
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
22 return 0;
de27ca625bf7 extended abstract/alias and template tests
thomask
parents:
diff changeset
23 }