Files
NetNewsWire/Modules/RSParser/Tests/RSParserTests/Feeds/JSON/RSSInJSONParserTests.swift
T

20 lines
461 B
Swift
Raw Normal View History

2025-04-21 20:23:41 -07:00
//
// RSSInJSONParserTests.swift
// RSParser
//
// Created by Brent Simmons on 6/26/17.
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
//
import Foundation
import Testing
2025-04-21 20:23:41 -07:00
import RSParser
@Suite struct RSSInJSONParserTests {
2025-04-21 20:23:41 -07:00
@Test func feedLanguage() throws {
2025-04-21 20:23:41 -07:00
let d = parserData("ScriptingNews", "json", "http://scripting.com/")
let parsedFeed = try #require(try FeedParser.parse(d))
#expect(parsedFeed.language == "en-us")
2025-04-21 20:23:41 -07:00
}
}