From 75c6303cee53a981ec2fdc350928656f459bcae1 Mon Sep 17 00:00:00 2001 From: "Christopher J. McClellan" Date: Sun, 20 Dec 2020 14:05:19 -0500 Subject: [PATCH] Make rust text based approval tests pass The main method for approval tests are supposed to run 30 days. Previous impl was using an exclusive range. Use an inclusive range instead. --- rust/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/main.rs b/rust/src/main.rs index eb973caf..3a552a81 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -18,7 +18,7 @@ fn main() { let mut rose = GildedRose::new(items); println!("OMGHAI!"); - for i in 0..30 { + for i in 0..=30 { println!("-------- day {} --------", i); println!("name, sellIn, quality"); for item in &rose.items {