Hoa central
Public Member Functions | List of all members
Hoa\Ustring\Test\Unit\Search Class Reference
Inheritance diagram for Hoa\Ustring\Test\Unit\Search:

Public Member Functions

 case_approximated ()
 
- Public Member Functions inherited from Hoa\Test\Unit\Suite
 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Test suite of the search algorithms.

Definition at line 50 of file Search.php.

Member Function Documentation

Hoa\Ustring\Test\Unit\Search::case_approximated ( )

Definition at line 52 of file Search.php.

53  {
54  $this
55  ->given(
56  $x = 'GATAA',
57  $y = 'CAGATAAGAGAA',
58  $k = 1
59  )
60  ->when($result = LUT\Search::approximated($y, $x, $k))
61  ->then
62  ->array($result)
63  ->isEqualTo([
64  0 => [
65  'i' => 1,
66  'j' => 6,
67  'l' => 5
68  ],
69  1 => [
70  'i' => 2,
71  'j' => 7,
72  'l' => 5
73  ],
74  2 => [
75  'i' => 3,
76  'j' => 8,
77  'l' => 5
78  ],
79  3 => [
80  'i' => 7,
81  'j' => 12,
82  'l' => 5
83  ]
84  ]);
85  }
static approximated($y, $x, $k)
Definition: Search.php:58

Here is the call graph for this function:


The documentation for this class was generated from the following file: