diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-13 01:52:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-13 01:52:21 -0500 |
commit | 8dfc9648c161e11a0cebd22e44452413cf3f8788 (patch) | |
tree | b3cb5215304c11b4c8bf6a2fd52377abb6d6444f /tests/basic.rs | |
parent | 1aa54fb6b45e8eea4604f8c8acaecb3bb9086fb4 (diff) | |
download | textmode-8dfc9648c161e11a0cebd22e44452413cf3f8788.tar.gz textmode-8dfc9648c161e11a0cebd22e44452413cf3f8788.zip |
refactor, start working on input test
Diffstat (limited to 'tests/basic.rs')
-rw-r--r-- | tests/basic.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/basic.rs b/tests/basic.rs index 3b52bc2..c18477b 100644 --- a/tests/basic.rs +++ b/tests/basic.rs @@ -5,7 +5,8 @@ mod fixtures; #[test] fn test_basic() { - fixtures::run_fixture("basic", "", true, |pty| { + let fixture = fixtures::Fixture::new("basic"); + fixture.build().run(&[], |pty| { pty.write_all(b"a").unwrap(); assert_eq!(fixtures::read(pty), b"\x1b[6;6Hfoo"); @@ -24,7 +25,9 @@ fn test_basic() { #[test] fn test_async() { - fixtures::run_fixture("async", "async", true, |pty| { + let mut fixture = fixtures::Fixture::new("async"); + fixture.features("async"); + fixture.build().run(&[], |pty| { pty.write_all(b"a").unwrap(); assert_eq!(fixtures::read(pty), b"\x1b[6;6Hfoo"); |