Skip to content

Commit ec432a9

Browse files
committed
build(test): fix tests
1 parent 32a7318 commit ec432a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/app.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,11 +3843,11 @@ mod tests {
38433843
view.push('"');
38443844
for (x, c) in cells.iter().enumerate() {
38453845
if skip == 0 {
3846-
view.push_str(&c.symbol);
3846+
view.push_str(&c.symbol());
38473847
} else {
3848-
overwritten.push((x, &c.symbol))
3848+
overwritten.push((x, c.symbol()))
38493849
}
3850-
skip = std::cmp::max(skip, c.symbol.width()).saturating_sub(1);
3850+
skip = std::cmp::max(skip, c.symbol().width()).saturating_sub(1);
38513851
}
38523852
view.push('"');
38533853
if !overwritten.is_empty() {
@@ -4094,22 +4094,22 @@ mod tests {
40944094
assert_eq!(app.tasks.len(), 26);
40954095
assert_eq!(app.current_context_filter, "");
40964096

4097-
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
4097+
assert_eq!(app.contexts.table_state.selected(), Some(0));
40984098
app.context_next();
40994099
app.context_next();
41004100
app.context_select().unwrap();
4101-
assert_eq!(app.contexts.table_state.current_selection(), Some(2));
4101+
assert_eq!(app.contexts.table_state.selected(), Some(2));
41024102

41034103
assert!(app.update(true).await.is_ok());
41044104

41054105
assert_eq!(app.tasks.len(), 1);
41064106
assert_eq!(app.current_context_filter, "+finance -private");
41074107

4108-
assert_eq!(app.contexts.table_state.current_selection(), Some(2));
4108+
assert_eq!(app.contexts.table_state.selected(), Some(2));
41094109
app.context_previous();
41104110
app.context_previous();
41114111
app.context_select().unwrap();
4112-
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
4112+
assert_eq!(app.contexts.table_state.selected(), Some(0));
41134113

41144114
assert!(app.update(true).await.is_ok());
41154115

0 commit comments

Comments
 (0)