mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
21 lines
461 B
Swift
21 lines
461 B
Swift
//
|
|
// RSSInJSONParserTests.swift
|
|
// RSParser
|
|
//
|
|
// Created by Brent Simmons on 6/26/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Testing
|
|
import RSParser
|
|
|
|
@Suite struct RSSInJSONParserTests {
|
|
|
|
@Test func feedLanguage() throws {
|
|
let d = parserData("ScriptingNews", "json", "http://scripting.com/")
|
|
let parsedFeed = try #require(try FeedParser.parse(d))
|
|
#expect(parsedFeed.language == "en-us")
|
|
}
|
|
}
|