SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[test]
  2. fn test1() {
  3.   assert_eq!(number(&[(10,0),(3,5),(5,8)]), 5);
  4. }
  5. #[test]
  6. fn test2() {
  7.   assert_eq!(number(&[(3,0),(9,1),(4,10),(12,2),(6,1),(7,10)]), 17);
  8. }
  9. #[test]
  10. fn test3() {
  11.   assert_eq!(number(&[(3,0),(9,1),(4,8),(12,2),(6,1),(7,8)]), 21);
  12. }
  13. #[test]
  14. fn test4() {
  15.   assert_eq!(number(&[(1,1),(1,1),(4,4),(12,12),(6,6),(8,8)]), 0);
  16. }
  17. #[test]
  18. fn test5() {
  19.   assert_eq!(number(&[(2,1),(2,1),(2,1),(2,1),(2,1),(2,1)]), 6);
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top