Skip to content

Commit

Permalink
Improve base32 test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 30, 2023
1 parent 963dd2d commit 9c4e6f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Base32/Base32Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
use const PHP_BASE32_ASCII;
use const PHP_BASE32_HEX;

/**
* @see https://opensource.apple.com/source/tcl/tcl-87/tcl_ext/tcllib/tcllib/modules/base32/base32hex.testsuite.auto.html
* @see https://opensource.apple.com/source/tcl/tcl-87/tcl_ext/tcllib/tcllib/modules/base32/base32.testsuite.auto.html
*/
final class Base32Test extends TestCase
{
/**
Expand Down Expand Up @@ -58,6 +62,12 @@ final class Base32Test extends TestCase
'RFC Vector 4' => ['foob', 'CPNMUOG='],
'RFC Vector 5' => ['fooba', 'CPNMUOJ1'],
'RFC Vector 6' => ['foobar', 'CPNMUOJ1E8======'],
'Old Vector 1' => [' ', '40======'],
'Old Vector 2' => [' ', '40G0===='],
'Old Vector 3' => [' ', '40G20==='],
'Old Vector 4' => [' ', '40G2080='],
'Old Vector 5' => [' ', '40G20810'],
'Old Vector 6' => [' ', '40G2081040======'],
],
];

Expand Down

0 comments on commit 9c4e6f4

Please sign in to comment.