MCPcopy Create free account
hub / github.com/Axect/Peroxide / test_tail

Function test_tail

tests/dataframe/dataframe.rs:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139#[test]
140fn test_tail() {
141 let df = sample_df();
142 let t = df.tail(2);
143 assert_eq!(t.nrow(), 2);
144 assert_eq!(t["x"], Series::new(vec![3, 4]));
145 assert_eq!(t["y"], Series::new(vec![0.3, 0.4]));
146}
147
148#[test]
149fn test_tail_larger_than_nrow() {

Callers

nothing calls this directly

Calls 2

sample_dfFunction · 0.85
tailMethod · 0.80

Tested by

no test coverage detected