Skip to content

Conversation

@sic2
Copy link
Contributor

@sic2 sic2 commented Mar 10, 2018

  • Fixed tests which were not comparing the encoded strings with the expected output
  • Made tests for invalid Base16 input
  • made Base enum immutable

sic2 added a commit to sic2/java-multiaddr that referenced this pull request Mar 10, 2018
Base8('7'), // highest char in octal
Base10('9'), // highest char in decimal
Base16('f'), // highest char in hex
Base32('b'), // highest char in hex
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not hex

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the catch

import java.math.BigInteger;

/**
* @author Simone I. Conte "sic2@st-andrews.ac.uk"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of this class, but 99% of the code is not yours, so probably better off without the explicit author comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry, IntelliJ put it there. I did not mean to gain authorship of this.

@ianopolous ianopolous merged commit f61099a into multiformats:master Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants