Skip to content

Commit

Permalink
Add dedicated JSON for flag testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sxg committed Mar 13, 2019
1 parent 944a032 commit e8737ac
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ForecastIO.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
4A92DEA5223991B000C12799 /* alerts.json in Resources */ = {isa = PBXBuildFile; fileRef = 4A92DEA322398FD300C12799 /* alerts.json */; };
4A92DEA7223997F900C12799 /* alerts_no_optionals.json in Resources */ = {isa = PBXBuildFile; fileRef = 4A92DEA6223997F900C12799 /* alerts_no_optionals.json */; };
4A92DEA82239997C00C12799 /* alerts_no_optionals.json in Resources */ = {isa = PBXBuildFile; fileRef = 4A92DEA6223997F900C12799 /* alerts_no_optionals.json */; };
4A92DEAA22399B9000C12799 /* flag.json in Resources */ = {isa = PBXBuildFile; fileRef = 4A92DEA922399B9000C12799 /* flag.json */; };
4A92DEAB22399CF100C12799 /* flag.json in Resources */ = {isa = PBXBuildFile; fileRef = 4A92DEA922399B9000C12799 /* flag.json */; };
4AA3256E1D615F03003CFFA9 /* DataBlockTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D9F2CF1C5442C400A4A02F /* DataBlockTests.swift */; };
4AA3256F1D615F03003CFFA9 /* DataPointTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D9F2CB1C54410300A4A02F /* DataPointTests.swift */; };
4AA325701D615F03003CFFA9 /* FlagTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D9F2C71C54400700A4A02F /* FlagTests.swift */; };
Expand Down Expand Up @@ -159,6 +161,7 @@
4A8B23511D447FB300ACBAA8 /* ForecastIO iOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ForecastIO iOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
4A92DEA322398FD300C12799 /* alerts.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = alerts.json; path = Tests/Resources/alerts.json; sourceTree = SOURCE_ROOT; };
4A92DEA6223997F900C12799 /* alerts_no_optionals.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = alerts_no_optionals.json; path = Tests/Resources/alerts_no_optionals.json; sourceTree = SOURCE_ROOT; };
4A92DEA922399B9000C12799 /* flag.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = flag.json; path = Tests/Resources/flag.json; sourceTree = SOURCE_ROOT; };
4AB7086C1D45230F005D1E8E /* LanguageTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = LanguageTests.swift; path = Tests/LanguageTests.swift; sourceTree = SOURCE_ROOT; };
4AB708701D45246C005D1E8E /* IconTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = IconTests.swift; path = Tests/IconTests.swift; sourceTree = SOURCE_ROOT; };
4AB708741D452539005D1E8E /* PrecipitationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrecipitationTests.swift; path = Tests/PrecipitationTests.swift; sourceTree = SOURCE_ROOT; };
Expand Down Expand Up @@ -366,6 +369,7 @@
children = (
4A14A6EE1CDAA80300D4C108 /* forecast_bare.json */,
D4D9F2B41C54061600A4A02F /* forecast.json */,
4A92DEA922399B9000C12799 /* flag.json */,
4A92DEA322398FD300C12799 /* alerts.json */,
4A92DEA6223997F900C12799 /* alerts_no_optionals.json */,
4A3364661CD9712000775650 /* forecast_no_optionals.json */,
Expand Down Expand Up @@ -652,6 +656,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4A92DEAA22399B9000C12799 /* flag.json in Resources */,
4A92DEA422398FD300C12799 /* alerts.json in Resources */,
4A92DEA7223997F900C12799 /* alerts_no_optionals.json in Resources */,
);
Expand All @@ -670,6 +675,7 @@
files = (
4A92DEA5223991B000C12799 /* alerts.json in Resources */,
4A92DEA82239997C00C12799 /* alerts_no_optionals.json in Resources */,
4A92DEAB22399CF100C12799 /* flag.json in Resources */,
D4D9F2B71C54061600A4A02F /* forecast.json in Resources */,
4A3364691CD9712000775650 /* forecast_no_optionals.json in Resources */,
4A14A6F51CDAA80F00D4C108 /* forecast_bare.json in Resources */,
Expand Down
59 changes: 59 additions & 0 deletions Tests/Resources/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"sources":[
"darksky",
"lamp",
"gfs",
"cmc",
"nam",
"rap",
"rtma",
"sref",
"fnmoc",
"isd",
"nwspa",
"madis",
"nearest-precip"
],
"darksky-stations":[
"KLWX",
"KDOX"
],
"lamp-stations":[
"KADW",
"KAPG",
"KBWI",
"KCGS",
"KDCA",
"KDMH",
"KDMW",
"KFME",
"KMTN",
"KNAK"
],
"isd-stations":[
"724060-93721",
"745944-93784",
"997296-99999",
"997302-99999",
"999999-13725"
],
"madis-stations":[
"4MD9",
"AR338",
"AS955",
"BLTM2",
"C0577",
"C1032",
"C1550",
"C3783",
"C9454",
"D8468",
"E2096",
"E6378",
"FSKM2",
"KBWI",
"KDMH",
"RSTM2"
],
"units":"us"
}

0 comments on commit e8737ac

Please sign in to comment.