refactor rectangles to have lib.rs to allow integration tests
This commit is contained in:
parent
e7f8215de9
commit
438063ac6b
3 changed files with 129 additions and 133 deletions
6
rectangles/tests/integration_test.rs
Normal file
6
rectangles/tests/integration_test.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
use rectangles::Rectangle;
|
||||
|
||||
#[test]
|
||||
fn integration_tests_works() {
|
||||
let rect = Rectangle::build_rectangle(1, 1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue