~eda-qa/dhlib/main

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* <license>
 * This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
 * For full copyright and license information please refer to doc/license.txt.
 * </license> 
 */
private class CRTText
{
	public var text : String;
	public var okay : Bool;
	
	public function new( okay : Bool, text : String )
	{
		this.text = text;
		this.okay = okay;
	}
}

class CannotReconcileTertiary  extends haxe.unit.TestCase
{
	function setOverride( value : String )
	{
		if( value == null )
			assertTrue( true );
		else
			assertEquals( value, "value" );
	}
	
	function doTestWith( opt : Hash<CRTText>, names : Array<String> )
	{
		for( o in names )
			setOverride( opt.get(o).okay ? opt.get(o).text : null );
	}
	
	public function testMain()
	{
		var q = new Hash<CRTText>();
		q.set( "one", new CRTText( true, "value" ) );
		q.set( "two" , new CRTText( false, "value" ) );
		var a = [ "one", "two" ];
		doTestWith( q, a );
	}
}