repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update to recent changes -- mostly testcases failing due to missing ArrayList
[mcs.git]
/
tests
/
test-370.cs
blob
73f1ff566fe27b204c409de045c1a9312c17453b
1
using
System
;
2
3
namespace
Test
4
{
5
public class
Application
6
{
7
private static int
ParseType
(
string
inType
)
8
{
9
switch
(
inType
)
10
{
11
case
"headless"
:
12
return
0
;
13
14
case
"headed"
:
15
default
:
16
return
1
;
17
18
case
"wedge"
:
19
return
2
;
20
21
case
"hi"
:
22
return
3
;
23
24
case
"she"
:
25
return
4
;
26
27
case
"sha2"
:
28
return
5
;
29
}
30
}
31
32
public static void
Main
()
33
{
34
int
result
=
ParseType
(
"foo"
);
35
}
36
}
37
}