From cf414916b6551e102ebf120866ef461d47c535bd Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 24 Aug 2021 09:56:13 +0200 Subject: [PATCH] Add integration test --- tests/test_lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test_lib.rs diff --git a/tests/test_lib.rs b/tests/test_lib.rs new file mode 100644 index 0000000..44d7f87 --- /dev/null +++ b/tests/test_lib.rs @@ -0,0 +1,8 @@ +use learning::*; + +#[test] +fn test_longest() { + assert_eq!(longest("abc", "de"), "abc"); + assert_eq!(longest("abc", "def"), "def"); + assert_eq!(longest("abc", "defg"), "defg"); +} -- 2.39.5