From: Martin Pitt Date: Tue, 24 Aug 2021 07:56:13 +0000 (+0200) Subject: Add integration test X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=cf414916b6551e102ebf120866ef461d47c535bd;p=learn-rust.git Add integration test --- 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"); +}