Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Axect/Peroxide
/ test_slice
Function
test_slice
tests/dataframe/dataframe.rs:156–161 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
154
155
#[test]
156
fn test_slice() {
157
let df = sample_df();
158
let s = df.slice(1, 2);
159
assert_eq!(s.nrow(), 2);
160
assert_eq!(s[
"x"
], Series::new(vec![2, 3]));
161
}
162
163
#[test]
164
fn test_slice_beyond_end() {
Callers
nothing calls this directly
Calls
2
sample_df
Function · 0.85
slice
Method · 0.80
Tested by
no test coverage detected