mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-03 14:56:01 +02:00
Fixed test
This commit is contained in:
parent
3806af6c75
commit
615473369f
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ namespace IDETest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int Switch1(Result<int> res)
|
/*int Switch1(Result<int> res)
|
||||||
{
|
{
|
||||||
switch (res)
|
switch (res)
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@ namespace IDETest
|
||||||
case .Err(let b): //FAIL
|
case .Err(let b): //FAIL
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
int Switch2(Result<int> res)
|
int Switch2(Result<int> res)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ namespace IDETest
|
||||||
{
|
{
|
||||||
case .Ok(let a):
|
case .Ok(let a):
|
||||||
if (a > 0)
|
if (a > 0)
|
||||||
return 2;
|
break;
|
||||||
fallthrough;
|
fallthrough;
|
||||||
case .Err:
|
case .Err:
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue