Skip to content

Commit

Permalink
Fix documentation and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nrabulinski committed Feb 2, 2024
1 parent bb2eea7 commit 8876f02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions book/src/generated/typable-cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
| `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. |
| `:debug-eval` | Evaluate expression in current debug context. |
| `:tab-new` | Create a new tab. |
| `:tab-next` | Goto next tab. |
| `:tab-previous` | Goto previous tab. |
| `:tab-rename` | Change the name of the current tab. |
| `:vsplit`, `:vs` | Open the file in a vertical split. |
| `:vsplit-new`, `:vnew` | Open a scratch buffer in a vertical split. |
| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |
Expand Down
8 changes: 4 additions & 4 deletions helix-term/tests/test/splits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ async fn test_split_write_quit_all() -> anyhow::Result<()> {
assert_eq!("hello3", doc3.text().to_string());

helpers::assert_status_not_error(&app.editor);
assert_eq!(3, app.editor.tree.views().count());
assert_eq!(3, app.editor.tabs.curr_tree().views().count());
}),
),
(
Some(":wqa<ret>"),
Some(&|app| {
helpers::assert_status_not_error(&app.editor);
assert_eq!(0, app.editor.tree.views().count());
assert_eq!(0, app.editor.tabs.curr_tree().views().count());
}),
),
],
Expand Down Expand Up @@ -82,7 +82,7 @@ async fn test_split_write_quit_same_file() -> anyhow::Result<()> {
(
Some("O<esc>ihello<esc>:sp<ret>ogoodbye<esc>"),
Some(&|app| {
assert_eq!(2, app.editor.tree.views().count());
assert_eq!(2, app.editor.tabs.curr_tree().views().count());
helpers::assert_status_not_error(&app.editor);

let mut docs: Vec<_> = app.editor.documents().collect();
Expand All @@ -102,7 +102,7 @@ async fn test_split_write_quit_same_file() -> anyhow::Result<()> {
Some(":wq<ret>"),
Some(&|app| {
helpers::assert_status_not_error(&app.editor);
assert_eq!(1, app.editor.tree.views().count());
assert_eq!(1, app.editor.tabs.curr_tree().views().count());

let mut docs: Vec<_> = app.editor.documents().collect();
assert_eq!(1, docs.len());
Expand Down

0 comments on commit 8876f02

Please sign in to comment.