1*17293a6fSEric Samelson[ 2*17293a6fSEric Samelson { 3*17293a6fSEric Samelson "name": "basic binary", 4*17293a6fSEric Samelson "raw": [":aGVsbG8=:"], 5*17293a6fSEric Samelson "header_type": "item", 6*17293a6fSEric Samelson "expected": [ 7*17293a6fSEric Samelson {"__type": "binary", "value": "NBSWY3DP"}, 8*17293a6fSEric Samelson []] 9*17293a6fSEric Samelson }, 10*17293a6fSEric Samelson { 11*17293a6fSEric Samelson "name": "empty binary", 12*17293a6fSEric Samelson "raw": ["::"], 13*17293a6fSEric Samelson "header_type": "item", 14*17293a6fSEric Samelson "expected": [ 15*17293a6fSEric Samelson {"__type": "binary", "value": ""}, 16*17293a6fSEric Samelson []] 17*17293a6fSEric Samelson }, 18*17293a6fSEric Samelson { 19*17293a6fSEric Samelson "name": "bad paddding", 20*17293a6fSEric Samelson "raw": [":aGVsbG8:"], 21*17293a6fSEric Samelson "header_type": "item", 22*17293a6fSEric Samelson "expected": [ 23*17293a6fSEric Samelson {"__type": "binary", "value": "NBSWY3DP"}, 24*17293a6fSEric Samelson []], 25*17293a6fSEric Samelson "can_fail": true, 26*17293a6fSEric Samelson "canonical": [":aGVsbG8=:"] 27*17293a6fSEric Samelson }, 28*17293a6fSEric Samelson { 29*17293a6fSEric Samelson "name": "bad end delimiter", 30*17293a6fSEric Samelson "raw": [":aGVsbG8="], 31*17293a6fSEric Samelson "header_type": "item", 32*17293a6fSEric Samelson "must_fail": true 33*17293a6fSEric Samelson }, 34*17293a6fSEric Samelson { 35*17293a6fSEric Samelson "name": "extra whitespace", 36*17293a6fSEric Samelson "raw": [":aGVsb G8=:"], 37*17293a6fSEric Samelson "header_type": "item", 38*17293a6fSEric Samelson "must_fail": true 39*17293a6fSEric Samelson }, 40*17293a6fSEric Samelson { 41*17293a6fSEric Samelson "name": "extra chars", 42*17293a6fSEric Samelson "raw": [":aGVsbG!8=:"], 43*17293a6fSEric Samelson "header_type": "item", 44*17293a6fSEric Samelson "must_fail": true 45*17293a6fSEric Samelson }, 46*17293a6fSEric Samelson { 47*17293a6fSEric Samelson "name": "suffix chars", 48*17293a6fSEric Samelson "raw": [":aGVsbG8=!:"], 49*17293a6fSEric Samelson "header_type": "item", 50*17293a6fSEric Samelson "must_fail": true 51*17293a6fSEric Samelson }, 52*17293a6fSEric Samelson { 53*17293a6fSEric Samelson "name": "non-zero pad bits", 54*17293a6fSEric Samelson "raw": [":iZ==:"], 55*17293a6fSEric Samelson "header_type": "item", 56*17293a6fSEric Samelson "expected": [ 57*17293a6fSEric Samelson {"__type": "binary", "value": "RE======"}, 58*17293a6fSEric Samelson []], 59*17293a6fSEric Samelson "can_fail": true, 60*17293a6fSEric Samelson "canonical": [":iQ==:"] 61*17293a6fSEric Samelson }, 62*17293a6fSEric Samelson { 63*17293a6fSEric Samelson "name": "non-ASCII binary", 64*17293a6fSEric Samelson "raw": [":/+Ah:"], 65*17293a6fSEric Samelson "header_type": "item", 66*17293a6fSEric Samelson "expected": [ 67*17293a6fSEric Samelson {"__type": "binary", "value": "77QCC==="}, 68*17293a6fSEric Samelson []] 69*17293a6fSEric Samelson }, 70*17293a6fSEric Samelson { 71*17293a6fSEric Samelson "name": "base64url binary", 72*17293a6fSEric Samelson "raw": [":_-Ah:"], 73*17293a6fSEric Samelson "header_type": "item", 74*17293a6fSEric Samelson "must_fail": true 75*17293a6fSEric Samelson } 76*17293a6fSEric Samelson] 77