~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to haxe/NoReturn.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* <license>
 
2
 * This file is part of the dis-Emi-A HaXe Library. Copyright (c) edA-qa mort-ora-y
 
3
 * For full copyright and license information please refer to doc/license.txt.
 
4
 * </license> 
 
5
 */
 
6
enum TestEnum
 
7
{
 
8
        Single;
 
9
}
 
10
 
 
11
class NoReturn  extends haxe.unit.TestCase
 
12
{
 
13
        static function getReturn( val : TestEnum ) : String
 
14
        {
 
15
                switch( val )
 
16
                {
 
17
                        case Single:
 
18
                                return "Okay";
 
19
                }
 
20
        }
 
21
        
 
22
        public function testMain()
 
23
        {
 
24
                assertEquals( "Okay", getReturn( TestEnum.Single ) );
 
25
        }
 
26
}
 
 
b'\\ No newline at end of file'