Minor typo

Instructions say:

[quote]Open CourseTests.swift and add a new test method testCreateCourseFromValidDictionary() that uses this dictionary:

func testCreateCourseFromValidDictionary() { let course: Course! = fetcher.courseFromDictionary(Constants.validCourseDict) XCTAssertNotNil(course) XCTAssertEqual(course.title, Constants.title) XCTAssertEqual(course.url, Constants.url) XCTAssertEqual(course.nextStartDate, Constants.date) }
[/quote]
It actually should be added to “ScheduleFetcherTests.swift”.

Confirmed with code supplied in GIT.

Great catch there. I’ve been trying to figure out why it wasn’t working as it was written in the book!

1 Like