 @testable import Mechanica
 
 class StringConversionsTests: XCTestCase {
-
+  
   func testBool() {
-    guard let n = "1".bool, n == true else {
-      XCTAssert(false, "Couldn't get the correct Bool value.")
-      return
-    }
-    guard let n2 = "false".bool, n2 == false else {
-      XCTAssert(false, "Couldn't get the correct Bool value.")
-      return
-    }
-    guard let n3 = "yes".bool, n3 == true else {
-      XCTAssert(false, "Couldn't get the correct Bool value.")
-      return
+    do {
+      guard let n = "1".bool, n == true else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
+    }
+    do {
+      guard let n = "1 ".bool, n == true else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
+    }
+    do {
+      guard let n = "false".bool, n == false else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
+    }
+    do {
+      guard let n = "yes".bool, n == true else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
+    }
+    do {
+      guard let n = " 👍🏽".bool, n == true else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
+    }
+    do {
+      guard let n = "👎 ".bool, n == false else {
+        XCTAssert(false, "Couldn't get the correct Bool value.")
+        return
+      }
     }
     XCTAssertNil("1x".bool, "Couldn't get the correct Bool value.")
     XCTAssertNil("yess".bool, "Couldn't get the correct Bool value.")
     XCTAssertNil("01".bool, "Couldn't get the correct Bool value.")
-  }
-
+    XCTAssertNil("👍🏽👍🏽".bool, "Couldn't get the correct Bool value.")
+    XCTAssertNil("👍🏿👍🏽".bool, "Couldn't get the correct Bool value.")
+    XCTAssertNil("👎👎".bool, "Couldn't get the correct Bool value.")
+    XCTAssertNil("👎🏾👎🏼".bool, "Couldn't get the correct Bool value.")
+  }
+  
   func testBase64Decoded() {
     XCTAssertNil("123".base64Decoded, "Couldn't get the correct Base64 decoded value.")
     XCTAssert("SGVsbG8gV29ybGQh".base64Decoded == "Hello World!", "Couldn't get the correct Base64 decoded value.")
     XCTAssert("SGVsbG8gUm9ib3RzIfCfpJbwn6SW".base64Decoded ==  "Hello Robots!🤖🤖", "Couldn't get the correct Base64 decoded value.")
   }
-
+  
   func testBase64Encoded() {
     XCTAssert("Hello World!".base64Encoded == "SGVsbG8gV29ybGQh", "Couldn't get the correct Base64 encoded value.")
     XCTAssert("Hello Robots!🤖🤖".base64Encoded == "SGVsbG8gUm9ib3RzIfCfpJbwn6SW", "Couldn't get the correct Base64 encoded value.")
   }
-
+  
   func testDouble() {
     guard let n = "11".double, n == 11 else {
       XCTAssert(false, "Couldn't get correct Double value.")

        return
      }
    }

    /// Float 32
    do {
      guard let n = "11.0483".float32, n == 11.0483 else {

        return
      }
    }
    
    /// Int 64
    do {
      guard let n = "9223372036854775807".int64, n == 9223372036854775807 else {
        XCTAssert(false, "Couldn't get correct Int 64 value.")
        return
      }
      
      guard let n2 = "-09223372036854775807".int64, n2 == -9223372036854775807 else {
        XCTAssert(false, "Couldn't get correct Int 64 value.")
        return
      }
    }
    
    XCTAssertNil("0t".int, "Couldn't get correct Int value.")
    XCTAssertNil("11,04".int, "Couldn't get correct Int value.")
    XCTAssertNil("11.04".int, "Couldn't get correct Int value.")
