Replies: 21 comments 2 replies
-
각자 아래와 같이 코멘트로 남겨주시면 좋을 것 같아요 👍 (케이스 하나당 1코멘트) TestParamType(std::vector<u_int8_t>{
0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70,
0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79
}, "30c5h66p35cpjmgqbaddm6qrjfe1on4srkelr7eu3p") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0xff, 0xff, 0xff, 0xff }, "3vvvvvv") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x05, 0x06, 0x07 }, "1b7") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef }, "14d2mf28anjff") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0xfe, 0xdc, 0xba, 0x09, 0x87, 0x65, 0x43, 0x21 }, "ftn5q163mag00") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }, "100000000") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x6b, 0x5a, 0x6b, 0x5a, 0x6b, 0x5a, 0x6b, 0x5a}, "qqqqqqqqqqq") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0xd1, 0xbe, 0x3a, 0x26, 0x00, 0xff }, "6hnot2c07v") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x5c, 0x5d, 0x5e, 0x5f }, "1e5qniv") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x11, 0x0, 0xC8, 0x53, 0x1D, 0x0, 0x9 }, "123456789") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x2e, 0x3a, 0x4f, 0x1a, 0xff }, "1seif3bv") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{
0x14, 0xb6, 0x35, 0xcf, 0x84, 0x65, 0x3a, 0x56, 0xd7, 0xc6, 0x75, 0xbe, 0x77, 0xdf
}, "abcdefghijklmnopqrstuv") |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0xf2, 0xbb, 0x2f, 0x5a, 0x11 }, "uatiumgh") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x01, 0x17, 0x56, 0xb8 }, "hello") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x18, 0xef, 0x5e, 0xfe, 0x71, 0xd7 }, "ottffssen") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0xf1, 0x2d, 0xa9, 0x50, 0x89, 0xcc }, "7h5mkl12ec") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x52, 0xdd, 0xad, 0xda, 0x5b, 0xac, 0x10, 0xdd, 0x51, 0x22, 0x53, 0x18, 0x89, 0x77 }, "19drbeqbem11nah499hh2bn") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x16, 0xae, 0x38, 0xc4 }, "base64") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x7c, 0xa1, 0x1e, 0xca, 0xf0 }, "fighting") |
Beta Was this translation helpful? Give feedback.
-
TestParamType(std::vector<u_int8_t>{ 0x06, 0xdd, 0x9f, 0x2e, 0xb2, 0x66, 0x1f, 0x4c, 0x6d, 0xca }, "republicofkorea") |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Base32 Unit test 테스트셋 만들기
@YoungSeokHong 님이 Base32 구현을 완성하였습니다 :)
다양한 유닛테스트를 만듦으로써 알고리즘의 견고함을 증명할 수 있으며
향후 리펙토링 시에도 큰 도움이 됩니다.
집단지성을 통해 유닛테스트를 만들어 보면 좋을 것 같습니다
Description
본 디스크립션은 #66을 참조하여 만들었습니다.
보다 자세한 사항은 Reference를 참조해주시고
뒤에서부터 5비트 단위로 끊어서 32진수를 만들고 최종 정답이 담긴 유닛테스트를 만드는 것입니다.
위는 바이너리를 16진수로 그리고 32진수로 만드는 과정을 표시한 것입니다 :)
가장 마지막의 형태가 정답이며 이대로 다양한 많은 케이스를 만듦으로써 16진수 대비 32진수를 사용하면
왜 압축이 가능한지 이해할 수 있는 좋은 자료가 될 수 있을 것 같습니다.
위의 경우 16진수를 사용하면 6c6d6e6f 총 8글자가 나오지만, 32진수를 사용하면 1m6qrjf 총 7글자로 줄일 수 있죠!
아래는 @YoungSeokHong 님이 만든 유닛테스트이니 참고해주시면 되겠습니다.
References
Discussion no #66 참조
Beta Was this translation helpful? Give feedback.
All reactions