test hinzugefügt um zu schauen ob die daten in der collection korrekt angelegt werden.
This commit is contained in:
parent
bc4c6cb5dd
commit
2640b70e5e
|
@ -27,6 +27,20 @@ class test extends TestCase {
|
||||||
$this->assertEquals($data, $reverse);
|
$this->assertEquals($data, $reverse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// test correct data is stored in the collection
|
||||||
|
public function testDataStorages() {
|
||||||
|
$data = [1337,1338,11111,141415,12,5];
|
||||||
|
$numberBaseCryptCollection = new \NAE\Crypt\NumberBaseCryptCollection([
|
||||||
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
||||||
|
'a', 'b', 'c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
|
||||||
|
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
|
||||||
|
]);
|
||||||
|
foreach($data as $value) {
|
||||||
|
$numberBaseCryptCollection->addData($value);
|
||||||
|
}
|
||||||
|
$this->assertEquals($data, $numberBaseCryptCollection->getPlainData());
|
||||||
|
}
|
||||||
|
|
||||||
// Full Circle simple data collection test
|
// Full Circle simple data collection test
|
||||||
public function testFullCircleDataCollectionComplex() {
|
public function testFullCircleDataCollectionComplex() {
|
||||||
$data = [1337,1338,11111,141415,12,5];
|
$data = [1337,1338,11111,141415,12,5];
|
||||||
|
|
Loading…
Reference in New Issue