Skip to content

Instantly share code, notes, and snippets.

@tanriol tanriol/ Secret
Created May 23, 2017

What would you like to do?
use std::env;
fn test_lots_lots_of_rectangles() {
let size: usize = env::var("SIZE").unwrap_or("10".to_string()).parse().unwrap();
let line: String = vec!["+"; size].into_iter().collect();
let lines: Vec<&str> = vec![&line; size];
assert_eq!(count(&lines), (size * (size - 1) / 2).pow(2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.