From 2919fdeee7040299e4be62ffb68f7d2a093f78af Mon Sep 17 00:00:00 2001
From: Axel Viala <axel.viala@darnuria.eu>
Date: Sun, 4 Oct 2020 16:40:28 +0200
Subject: [PATCH] Add a test in primitive_types6.rs.

---
 exercises/primitive_types/primitive_types6.rs | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/exercises/primitive_types/primitive_types6.rs b/exercises/primitive_types/primitive_types6.rs
index 2bc817e..1dc1af6 100644
--- a/exercises/primitive_types/primitive_types6.rs
+++ b/exercises/primitive_types/primitive_types6.rs
@@ -1,11 +1,16 @@
 // primitive_types6.rs
 // Use a tuple index to access the second element of `numbers`.
-// You can put this right into the `println!` where the ??? is.
+// You can write it were ??? is so that the test passes.
 // Execute `rustlings hint primitive_types6` for hints!
 
 // I AM NOT DONE
 
-fn main() {
+#[test]
+fn indexing_tuple() {
     let numbers = (1, 2, 3);
-    println!("The second number is {}", ???);
+    /// Replace below ??? by tuple indexing syntax.
+    let second = ???;
+
+    assert_eq!(2, second
+        "This is not the 2nd number of the tuple numbers")
 }