collection funktionen dauerhaft aus CryptBase test entfernt
This commit is contained in:
parent
5fee5b8e97
commit
50e4a59544
|
@ -119,42 +119,4 @@ class test extends TestCase {
|
||||||
$this->assertEquals(1013374, $b10);
|
$this->assertEquals(1013374, $b10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
// Full Circle data collection test
|
|
||||||
public function testFullCircleDataCollection() {
|
|
||||||
$data = [1337,1338,11111,141415,12,5];
|
|
||||||
$numberBaseCrypt = new \NAE\Crypt\NumberBaseCrypt([
|
|
||||||
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'
|
|
||||||
]);
|
|
||||||
$numberBaseCrypt->shuffleDigits();
|
|
||||||
$dataCollection = "";
|
|
||||||
foreach ($data as $value) {
|
|
||||||
$tmp = $numberBaseCrypt->base10ToBase($value);
|
|
||||||
$dataCollection .= $numberBaseCrypt->addLength($tmp);
|
|
||||||
}
|
|
||||||
$reverse = $numberBaseCrypt->parseBaseDataCollection($dataCollection);
|
|
||||||
$this->assertEquals($data, $reverse);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Full Circle data collection test (reverse)
|
|
||||||
public function testFullCircleDataCollectionReverse() {
|
|
||||||
$data = [1337,1338,11111,141415,12,5];
|
|
||||||
$numberBaseCrypt = new \NAE\Crypt\NumberBaseCrypt([
|
|
||||||
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'
|
|
||||||
]);
|
|
||||||
$dataCollection = "";
|
|
||||||
foreach ($data as $value) {
|
|
||||||
$tmp = $numberBaseCrypt->base10ToBase($value);
|
|
||||||
$dataCollection .= $numberBaseCrypt->addLength($tmp);
|
|
||||||
}
|
|
||||||
$numberBaseCrypt->shuffleDigits();
|
|
||||||
$reverse = $numberBaseCrypt->parseBaseDataCollection($dataCollection);
|
|
||||||
$this->assertNotEquals($data, $reverse);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue