// Path: src/main/java/io/github/novacrypto/base58/Base58.java
// public static String base58Encode(final byte[] bytes) {
//     return getThreadSharedBase58().encode(bytes);
// }
// 
// Path: src/main/java/io/github/novacrypto/base58/CapacityCalculator.java
// static int maximumBase58StringLength(final int byteLength) {
//     return (int) Math.ceil(byteLength * storageRatio);
// }


import static io.github.novacrypto.base58.Base58.base58Encode;
import static io.github.novacrypto.base58.CapacityCalculator.maximumBase58StringLength;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/*
 *  Base58 library, a Java implementation of Base58 encode/decode
 *  Copyright (C) 2017-2019 Alan Evans, NovaCrypto
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 *  Original source: https://github.com/NovaCrypto/Base58
 *  You can contact the authors via github issues.
 */

package io.github.novacrypto.base58;



public final class CapacityCalculatorTests {

    @Test
    public void capacity_of_low_byte_lengths() {
        for (int byteLength = 0; byteLength < 1000; byteLength++) {
            assertEquals(actualMaxLengthOfBytes(byteLength), maximumBase58StringLength(byteLength));
        }
    }

    @Test
    public void capacity_of_higher_byte_lengths() {
        for (int byteLength = 2000; byteLength < 2050; byteLength++) {
// Path: src/main/java/io/github/novacrypto/base58/Base58.java
// public static String base58Encode(final byte[] bytes) {
//     return getThreadSharedBase58().encode(bytes);
// }
// 
// Path: src/main/java/io/github/novacrypto/base58/CapacityCalculator.java
// static int maximumBase58StringLength(final int byteLength) {
//     return (int) Math.ceil(byteLength * storageRatio);
// }


// Path: src/test/java/io/github/novacrypto/base58/CapacityCalculatorTests.java
import static io.github.novacrypto.base58.Base58.base58Encode;
import static io.github.novacrypto.base58.CapacityCalculator.maximumBase58StringLength;
import static org.junit.Assert.assertEquals;
import org.junit.Test;

/*
 *  Base58 library, a Java implementation of Base58 encode/decode
 *  Copyright (C) 2017-2019 Alan Evans, NovaCrypto
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 *  Original source: https://github.com/NovaCrypto/Base58
 *  You can contact the authors via github issues.
 */

package io.github.novacrypto.base58;



public final class CapacityCalculatorTests {

    @Test
    public void capacity_of_low_byte_lengths() {
        for (int byteLength = 0; byteLength < 1000; byteLength++) {
            assertEquals(actualMaxLengthOfBytes(byteLength), maximumBase58StringLength(byteLength));
        }
    }

    @Test
    public void capacity_of_higher_byte_lengths() {
        for (int byteLength = 2000; byteLength < 2050; byteLength++) {
            assertEquals(actualMaxLengthOfBytes(byteLength), maximumBase58StringLength(byteLength));