aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-13 01:52:21 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-13 01:52:21 -0500
commit8dfc9648c161e11a0cebd22e44452413cf3f8788 (patch)
treeb3cb5215304c11b4c8bf6a2fd52377abb6d6444f /tests/basic.rs
parent1aa54fb6b45e8eea4604f8c8acaecb3bb9086fb4 (diff)
downloadtextmode-8dfc9648c161e11a0cebd22e44452413cf3f8788.tar.gz
textmode-8dfc9648c161e11a0cebd22e44452413cf3f8788.zip
refactor, start working on input test
Diffstat (limited to 'tests/basic.rs')
-rw-r--r--tests/basic.rs7
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");