From 8dfc9648c161e11a0cebd22e44452413cf3f8788 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Mar 2021 01:52:21 -0500 Subject: refactor, start working on input test --- tests/basic.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/basic.rs') 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"); -- cgit v1.2.3-54-g00ecf