Skip to content

Commit e48a482

Browse files
committed
src/lib.rs:test generic_sys_call prices historical_prices
1 parent f5a039f commit e48a482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,15 @@ mod tests {
206206
// GET /api/v1/prices
207207
let binding = format!("v1/prices").clone();
208208
let prices: &str = blocking(&binding).expect("REASON");
209+
let prices = generic_sys_call("prices", "extraneous_arg");
209210
wait();
210211
}
211212
#[test]
212213
fn test_historical_price() {
213214
// GET /api/v1/historical-price?currency=EUR&timestamp=1500000000
214215
let historical_price_json = historical_price(&"EUR", &"1500000000");
215216
print!("\n{{\"prices\":[{{\"time\":1499904000,\"EUR\":1964,\"USD\":2254.9}}],\"exchangeRates\":{{\"USDEUR\":0.92,\"USDGBP\":0.78,\"USDCAD\":1.38,\"USDCHF\":0.87,\"USDAUD\":1.53,\"USDJPY\":146.62}}}}\n");
217+
let historical_prices = generic_sys_call("historical_price", "USD");
216218
wait();
217219
}
218220

0 commit comments

Comments
 (0)