From 7d5500f62c1eb316682d6c8de314d2b181c5248a Mon Sep 17 00:00:00 2001 From: Adam Carpenter <53hornet@gmail.com> Date: Tue, 19 Feb 2019 17:08:00 -0500 Subject: Added minigrep. --- testing/tests/common/mod.rs | 3 +++ testing/tests/integration_test.rs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 testing/tests/common/mod.rs (limited to 'testing/tests') diff --git a/testing/tests/common/mod.rs b/testing/tests/common/mod.rs new file mode 100644 index 0000000..c00b3a6 --- /dev/null +++ b/testing/tests/common/mod.rs @@ -0,0 +1,3 @@ +pub fn setup() { + // setup code +} diff --git a/testing/tests/integration_test.rs b/testing/tests/integration_test.rs index e0dbe08..ce04ce3 100644 --- a/testing/tests/integration_test.rs +++ b/testing/tests/integration_test.rs @@ -1,7 +1,9 @@ use testing; +mod common; #[test] fn it_adds_two() { - assert_eq!(4, testing::add_two(2)); + common::setup(); + assert_eq!(4, testing::add_two(2)); } -- cgit v1.2.3