-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Handle semver comparisons #49
feat: Handle semver comparisons #49
Conversation
@@ -1,6 +1,51 @@ | |||
import FeaturevisorTypes | |||
import Foundation | |||
|
|||
struct Semver: Equatable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move to separate file
XCTAssertTrue(conditionIsMatched(condition: condition, context: context)) | ||
} | ||
|
||
func testSemverEquality() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move Semver tests into separate file
XCTAssertTrue(conditionIsMatched(condition: condition, context: context)) | ||
} | ||
|
||
func testBooleanNotEquals() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow the same pattern that we have in other tests. Point out sections like GIVEN, WHEN, THEN
import FeaturevisorTypes | ||
import Foundation | ||
|
||
struct Semver: Equatable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just Semver.swift, not Conditions+Semver.swift
@@ -21,7 +21,8 @@ extension FeaturevisorInstance { | |||
|
|||
try? fetchDatafileContent( | |||
from: datafileUrl, | |||
handleDatafileFetch: handleDatafileFetch) { [weak self] result in | |||
handleDatafileFetch: handleDatafileFetch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, double check that these format changes follow the current swift-format config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the branch from the main, both swiftformating and linting shows no errors
@@ -0,0 +1,89 @@ | |||
import XCTest | |||
|
|||
@testable import FeaturevisorSDK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last thing. This should be called SemverTests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the file name
No description provided.