Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda