Skip to content

Commit

Permalink
Fix linter offences
Browse files Browse the repository at this point in the history
  • Loading branch information
sponomarev committed Dec 5, 2023
1 parent 8fdd925 commit 83c84a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libsol/token_info_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ void test_get_token_symbol_unknown() {
}

void test_get_token_symbol_USDC() {
Pubkey pubkey = {{0xc6,0xfa,0x7a,0xf3,0xbe,0xdb,0xad,0x3a,0x3d,0x65,0xf3,0x6a,0xab,0xc9,0x74,0x31,0xb1,0xbb,0xe4,0xc2,0xd2,0xf6,0xe0,0xe4,0x7c,0xa6,0x02,0x03,0x45,0x2f,0x5d,0x61}};
Pubkey pubkey = {{0xc6, 0xfa, 0x7a, 0xf3, 0xbe, 0xdb, 0xad, 0x3a, 0x3d, 0x65, 0xf3,
0x6a, 0xab, 0xc9, 0x74, 0x31, 0xb1, 0xbb, 0xe4, 0xc2, 0xd2, 0xf6,
0xe0, 0xe4, 0x7c, 0xa6, 0x02, 0x03, 0x45, 0x2f, 0x5d, 0x61}};
const char* symbol = get_token_symbol(&pubkey);

assert_string_equal(symbol, "USDC");
}

void test_get_token_symbol_SOL() {
Pubkey pubkey = {{0x06,0x9b,0x88,0x57,0xfe,0xab,0x81,0x84,0xfb,0x68,0x7f,0x63,0x46,0x18,0xc0,0x35,0xda,0xc4,0x39,0xdc,0x1a,0xeb,0x3b,0x55,0x98,0xa0,0xf0,0x00,0x00,0x00,0x00,0x01}};
Pubkey pubkey = {{0x06, 0x9b, 0x88, 0x57, 0xfe, 0xab, 0x81, 0x84, 0xfb, 0x68, 0x7f,
0x63, 0x46, 0x18, 0xc0, 0x35, 0xda, 0xc4, 0x39, 0xdc, 0x1a, 0xeb,
0x3b, 0x55, 0x98, 0xa0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x01}};
const char* symbol = get_token_symbol(&pubkey);

assert_string_equal(symbol, "SOL");
Expand Down

0 comments on commit 83c84a9

Please sign in to comment.