Skip to content

Conversation

@bobvoorneveld
Copy link

Was missing this for my own implementation. Maybe handy for someone else.

I've updated the tests to use Swift Testing.

Copy link
Owner

@ActuallyTaylor ActuallyTaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! The only note that I have is the case naming for all the functions.

final class BasicHTMLTests {

func testAll() throws {
@Test func All() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func All() throws {
@Test func all() throws {

}

func testHeaderLevelOne() throws {
@Test func HeaderLevelOne() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func HeaderLevelOne() throws {
@Test func headerLevelOne() throws {

}

func testHeaderLevelTwo() throws {
@Test func HeaderLevelTwo() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func HeaderLevelTwo() throws {
@Test func headerLevelTwo() throws {

}

func testHeaderLevelThree() throws {
@Test func HeaderLevelThree() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func HeaderLevelThree() throws {
@Test func headerLevelThree() throws {

}

func testHeaderLevelFour() throws {
@Test func HeaderLevelFour() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func HeaderLevelFour() throws {
@Test func headerLevelFour() throws {

}

func testItalicizedBoldText() throws {
@Test func ItalicizedBoldText() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func ItalicizedBoldText() throws {
@Test func italicizedBoldText() throws {

}

func testFencedCodeBlockWithLanguage() throws {
@Test func FencedCodeBlockWithLanguage() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func FencedCodeBlockWithLanguage() throws {
@Test func fencedCodeBlockWithLanguage() throws {

}

func testFencedCodeBlockWithoutLanguage() throws {
@Test func FencedCodeBlockWithoutLanguage() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func FencedCodeBlockWithoutLanguage() throws {
@Test func fencedCodeBlockWithoutLanguage() throws {

}

func testCode() throws {
@Test func Code() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func Code() throws {
@Test func code() throws {

#expect(markdown == correctOutput)
}

@Test func UnorderedLists() throws {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Test func UnorderedLists() throws {
@Test func unorderedLists() throws {

@bobvoorneveld
Copy link
Author

Tnx for your feedback. I did a simple replace and forgot to lowercase the first letter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants