         let attributesOfFirstWord = result.attributesAt(0, 3)
         XCTAssert(attributesOfFirstWord.count == 2)
         XCTAssert(attributesOfFirstWord.contains(where: colorAttribute(UIColor.red)))
-        XCTAssert(attributesOfFirstWord.contains(where: fontAttribute("font-style: normal")))
-        XCTAssert(attributesOfFirstWord.contains(where: fontAttribute("font-size: 23.00pt")))
+        XCTAssert(attributesOfFirstWord.contains(where: fontAttribute(largeFont)))
         
         let attributesOfSpace = result.attributesAt(3, 1)
         XCTAssert(attributesOfSpace.count == 0)
         
         let attributesOfSecondWord = result.attributesAt(4, 5)
-        XCTAssert(attributesOfFirstWord.count == 2)
+        XCTAssert(attributesOfSecondWord.count == 2)
         XCTAssert(attributesOfSecondWord.contains(where: colorAttribute(UIColor.blue)))
-        XCTAssert(attributesOfSecondWord.contains(where: fontAttribute("font-style: normal")))
-        XCTAssert(attributesOfSecondWord.contains(where: fontAttribute("font-size: 11.00pt")))
+        XCTAssert(attributesOfSecondWord.contains(where: fontAttribute(smallFont)))
     }
 }

            return false
        }
        
        let parts = font.description.characters.split(separator: ";")
        return parts.contains(where: { part in
            return String(part).trimmingCharacters(in: CharacterSet.whitespaces) == description
        })
    }
}


        
        let attributesOfFirstWord = sample.attributesAt(0, example.length)
        XCTAssert(attributesOfFirstWord.count == 1)
        XCTAssert(attributesOfFirstWord.contains(where: fontAttribute(largeFont)))
    }

    func testCreate_string_formatter_and_apply_it_to_string() {
