Skip to content
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

newline #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

newline #37

wants to merge 1 commit into from

Conversation

isabellahoch
Copy link
Contributor

No description provided.

Copy link

benchify bot commented Nov 26, 2024

🧪 Benchify Analysis of PR 37

There is no table provided. Please provide the table with the results from property-based-testing, and I'll be happy to summarize the results succinctly and accurately.

Reproducible Unit Tests
// Property: isEmptyString returns true for any string composed entirely of whitespace characters

// The next test is passing.
it('isEmptyString_passing_0', () => {
  const str = -D]5W@2qN, % {}, xz=_ &{4, ||"/z|{, , |rvT, h!hasO, {###|zO&, U. v, .H+iQEc|Wfc.property(
        fc.string(),
        (s) => {
            return isEmptyString(s + '   ') === isEmptyString(s + '\t\n')
        }
    )
)
});

// Property: isPalindrome returns true if and only if the string equals its reverse

// The next test is passing.
it('isPalindrome_passing_0', () => {
  const str = 2TGsAe@;K, #$x$n , T, }z, #"!Ry,Dt~V, KcdnG(<j?', EwxS$#h, ,4Grfpf, N|;9w3E*&, zS%&fc.property(
        fc.string(),
        (s) => {
            return isPalindrome(s) === isPalindrome(s.split('').reverse().join(''))
        }
    )
)
});

// Property: truncateString is idempotent - applying it twice with the same maxLength gives the same result as applying it once

// The next test is passing.
it('truncateString_passing_0', () => {
  const str = _o,1955698651, %x]#t3,30, X|,17, ,1685058, valueOf,387051943, x! ,7, ^8,1350057591, Px!|x#.QKI,2147483626, dy,57082085, ,19  const maxLength = _o,1955698651, %x]#t3,30, X|,17, ,1685058, valueOf,387051943, x! ,7, ^8,1350057591, Px!|x#.QKI,2147483626, dy,57082085, ,19fc.property(
        fc.string(),
        fc.integer({ min: 0 }),
        (s, n) => {
            return truncateString(truncateString(s, n), n) === truncateString(s, n)
        }
    )
)
});

// Property: capitalizeWords preserves string length

// The next batch of tests are passing.
it('capitalizeWords_passing_0', () => {
  const str = arguments, B__+e'), a, czTE#7%-O, ,\L, n1, ref, ?L{#VS(EJ1, , %}$ffc.property(
        fc.string(),
        (s) => {
            return capitalizeWords(s).length === s.length
        }
    )
)
});

it('capitalizeWords_passing_1', () => {
  const str = DCQ5, A^v|a\]hA), apply, :K=Sy, , nB<NGVHe, Z, B%E#, |q , fc.property(
        fc.string(),
        (s) => {
            return capitalizeWords(s).length === s.length
        }
    )
)
});

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.

1 participant