File tree Expand file tree Collapse file tree
src/test/java/io/ipfs/multibase Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package io .ipfs .multibase ;
22
3+ import static org .junit .jupiter .api .Assertions .assertThrows ;
4+
35import java .util .Arrays ;
46import java .util .Collection ;
57
68import org .junit .jupiter .params .ParameterizedTest ;
79import org .junit .jupiter .params .provider .MethodSource ;
810
9- import static org .junit .jupiter .api .Assertions .assertThrows ;
10-
1111public class MultibaseBadInputsTest {
1212
1313 public static Collection <String > data () {
1414 return Arrays .asList (
15- "f012" , // Hex string of odd length, not allowed in Base16
16- "f0g" , // 'g' char is not allowed in Base16
17- "zt1Zv2yaI" , // 'I' char is not allowed in Base58
18- "2" , // '2' is not a valid encoding marker
19- "" // Empty string is not a valid multibase
15+ "f012" , // Hex string of odd length, not allowed in Base16
16+ "f0g" , // 'g' char is not allowed in Base16
17+ "zt1Zv2yaI" , // 'I' char is not allowed in Base58
18+ "2" , // '2' is not a valid encoding marker
19+ "" // Empty string is not a valid multibase
2020 );
2121 }
2222
You can’t perform that action at this time.
0 commit comments