From 2640b70e5e62e8fb0f315d670595834f98bf43f1 Mon Sep 17 00:00:00 2001 From: Marcel Naeve Date: Fri, 19 Apr 2024 22:42:18 +0200 Subject: [PATCH] =?UTF-8?q?test=20hinzugef=C3=BCgt=20um=20zu=20schauen=20o?= =?UTF-8?q?b=20die=20daten=20in=20der=20collection=20korrekt=20angelegt=20?= =?UTF-8?q?werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test.class.NumberBaseCryptCollection.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test.class.NumberBaseCryptCollection.php b/tests/test.class.NumberBaseCryptCollection.php index 888fa38..e7366b2 100644 --- a/tests/test.class.NumberBaseCryptCollection.php +++ b/tests/test.class.NumberBaseCryptCollection.php @@ -27,6 +27,20 @@ class test extends TestCase { $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 public function testFullCircleDataCollectionComplex() { $data = [1337,1338,11111,141415,12,5];