Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
Strange dots in output when printing a multi lined string while running an npm test

I am making a to-do list application and one of the commands in this application is to print the help heres my code:

@app.command()
def help():
    y="""""Usage :-\n
    $ ./task add 2 hello world\t    # Add a new item with priority 2 and text \"hello world\" to the list\n
    $ ./task ls\t                   # Show incomplete priority list items sorted by priority in ascending order
    $ ./task del INDEX\t            # Delete the incomplete item with the given index\n
    $ ./task done INDEX\t           # Mark the incomplete item with the given index as complete\n
    $ ./task help\t                 # Show usage\n
    $ ./task report\t               # Statistics"""
    print(y)

When I run this code I get the normal output which can be imagined But when I run npm automation test given by my internship I get a different output in recieved

Here are the Expected and Receieved output:

Expected: StringContaining "Usage :-
    $ ./task add 2 hello world    # Add a new item with priority 2 and text \"hello world\" to the list
    $ ./task ls                   # Show incomplete priority list items sorted by priority in ascending order
    $ ./task del INDEX            # Delete the incomplete item with the given index
    $ ./task done INDEX           # Mark the incomplete item with the given index as complete
    $ ./task help                 # Show usage
    $ ./task report               # Statistics"


 Received: "Usage :-···
    $ ./task add 2 hello world    # Add a new item with priority 2 and text \"hello world\" to the list···
    $ ./task ls                   # Show incomplete priority list items sorted by priority in ascending order···
    $ ./task del INDEX            # Delete the incomplete item with the given index···
    $ ./task done INDEX           # Mark the incomplete item with the given index as complete···
    $ ./task help                 # Show usage···
    $ ./task report               # Statistics·
    "

As you can see im getting these strange dots on my output while running npm tests Any help on this would be appreciated

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda