mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix bug finding channel element in RSS-in-JSON parser.
This commit is contained in:
22
Frameworks/RSParser/RSParserTests/RSSInJSONParserTests.swift
Normal file
22
Frameworks/RSParser/RSParserTests/RSSInJSONParserTests.swift
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// RSSInJSONParserTests.swift
|
||||
// RSParser
|
||||
//
|
||||
// Created by Brent Simmons on 6/26/17.
|
||||
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
import RSParser
|
||||
|
||||
class RSSInJSONParserTests: XCTestCase {
|
||||
|
||||
func testScriptingNewsPerformance() {
|
||||
|
||||
// 0.003 sec on my 2012 iMac.
|
||||
let d = parserData("ScriptingNews", "json", "http://scripting.com/")
|
||||
self.measure {
|
||||
let _ = try! FeedParser.parse(d)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user