mirror of
https://github.com/rzmk/czv.git
synced 2025-12-19 00:09:24 +00:00
19 lines
385 B
Rust
19 lines
385 B
Rust
use czv_wasm;
|
|
use czv_wasm::Result;
|
|
use wasm_bindgen_test::*;
|
|
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
|
|
|
|
#[test]
|
|
#[wasm_bindgen_test]
|
|
fn basic() -> Result<()> {
|
|
let result = czv_wasm::count::row_count(
|
|
"fruit,price
|
|
apple,2.00
|
|
banana,1.50
|
|
strawberry,3.00"
|
|
.to_string(),
|
|
Some(false),
|
|
)?;
|
|
assert_eq!(result, 3);
|
|
Ok(())
|
|
}
|