From 517b60ad9c784a0da9a5cd2c2ac32fe0f0af33ec Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 4 Dec 2019 23:20:57 -0500 Subject: [PATCH] [test-libfc] refs #5 Update test `TestRegisterSkycoinPlugin` --- lib/cgo/tests/check_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cgo/tests/check_main.c b/lib/cgo/tests/check_main.c index 79dd0c8..3f44e8b 100644 --- a/lib/cgo/tests/check_main.c +++ b/lib/cgo/tests/check_main.c @@ -15,6 +15,7 @@ START_TEST(TestRegisterSkycoinPlugin) { GoString SkycoinTicker = {"SKY", 3}; GoString CoinHoursTicker = {"SKYCH", 5}; + GoString CalculatedHoursTicker = {"SKYCHC", 6}; GoUint8_ bufferTemp[1024]; GoString_ Temp = {bufferTemp, 0}; @@ -23,6 +24,8 @@ START_TEST(TestRegisterSkycoinPlugin) { 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); + ck_assert_str_eq(Temp.p, "Calculated Hours"); } END_TEST