Ad
  • Custom User Avatar

    It's not the test, it's your code that adds it.

    function Get-HighestScoringWord([string]$s)
    {
      "volcano"
    }
    

    You can see that test passes and in all others there is no space added.

  • Custom User Avatar

    why did the test add a space with the first character ?

    Expected: {volcano}
    But was: { volcano}