Ad
  • Default User Avatar

    Random tests for Go

    input: []int{30, 33, 34, 35, 39, 44, 52, 53, 55, 56, 61, 62}

    Expected
    "30,33-35,39,44,52,53,55,56,61-62"
    to equal
    "30,33-35,39,44,52,53,55,56,61,62"

    why two last elements should be a range?
    Doesn't a range consist of at least three?