2
* This file is part of the dis-Emi-A HaXe Library. Copyright © edA-qa mort-ora-y
3
* For full copyright and license information please refer to doc/license.txt.
8
class PermuteTest extends haxe.unit.TestCaseX
27
public function testString()
29
var tree = words.PermutationTree.withString( "abc" );
30
var all = new Hash<Bool>();
32
var node = tree.root();
35
all.set( node.stringToHere(), true );
36
} while( node.childFirstStep() );
40
assertTrue( all.exists( w ) );
43
var abcHash = HashUtil.fromArrayValue( allABC, true );
44
for( w in all.keys() )
45
assertTrue( abcHash.exists( w ) );