Skip to content

Commit

Permalink
[test-fc] refs fibercrypto#5 Update suite test `TestRegisterSkycoinPl…
Browse files Browse the repository at this point in the history
…ugin`
  • Loading branch information
Maykel Arias Torres committed Dec 6, 2019
1 parent 54558d4 commit 39e5da0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/cgo/tests/check_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ START_TEST(TestRegisterSkycoinPlugin) {
printf("Load TestRegisterSkycoinPlugin \n");

GoString SkycoinTicker = {"SKY", 3};
GoString CoinHoursTicker = {"SKYCH", 5};
GoString CalculatedHoursTicker = {"SKYCHC", 6};

GoUint8_ bufferTemp[1024];
GoString_ Temp = {bufferTemp, 0};

GoString CoinHoursTicker = {"SCH", 3};
GoString CalculatedHoursTicker = {"SCH#ACC", 7};
GoString_ Temp;
FC_util_AltcoinCaption(SkycoinTicker, &Temp);
ck_assert_str_eq(Temp.p, "Skycoin");
FC_util_AltcoinCaption(CoinHoursTicker, &Temp);
ck_assert_str_eq(Temp.p, "Coin Hours");
FC_util_AltcoinCaption(CalculatedHoursTicker, &Temp);
FC_util_AltcoinCaption(CalculatedHoursTicker, &Temp);
ck_assert_str_eq(Temp.p, "Calculated Hours");
}
END_TEST
Expand Down

0 comments on commit 39e5da0

Please sign in to comment.