Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests #242

Merged
merged 5 commits into from
Sep 21, 2019
Merged

Unit tests #242

merged 5 commits into from
Sep 21, 2019

Conversation

TimonPost
Copy link
Member

  • Increased get terminal size by one (corrected change)

  • Decreased set terminal size windows by 1. Windows starts counting from 0, when setting the size to 5, 5 windows will see that as 6,6, therefore we need to subtract 1.

  • removed ignores from test

Copy link
Contributor

@zrzka zrzka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except these three reenabled tests. Should be disabled as it's a TCI terminal emulation issue.

@@ -130,7 +129,6 @@ mod tests {

// TODO - Test is ingored, because it's stalled on Travis CI
#[test]
#[ignore]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These don't work on TCI, should be disabled. See the comment above (in the code).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I saw the comments, just wanted to try it again. Unfortunately...

@@ -128,8 +128,12 @@ impl ITerminal for WinApiTerminal {
resize_buffer = true;
}

println!("{:?}", new_size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed.

@zrzka
Copy link
Contributor

zrzka commented Sep 21, 2019

BTW you can run ignored tests locally by adding --ignored to cargo test (after --).

@zrzka
Copy link
Contributor

zrzka commented Sep 21, 2019

On mobile, can't find the Approve button, so, approved :D

@TimonPost TimonPost merged commit 3b444d0 into master Sep 21, 2019
@TimonPost TimonPost deleted the unit_tests branch October 19, 2019 11:18
december1981 pushed a commit to december1981/crossterm that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants