Skip to content

Failing tests #1

@unphased

Description

@unphased
$ ./node_modules/mocha/bin/mocha

  checksum
    ✓ should calculate correctly

  packets
    with bad crc
Flight Status 7: Unknown flight status: 7

      1) should fail the crc check
    with good crc
Flight Status 7: Unknown flight status: 7

      2) should pass the crc check
    with bad crc that can be recovered
Flight Status 0: Normal, Airborne
AC13 Altitude: 23375, Units: ft

      3) should fail the crc check

  packets
    that are short
Flight Status 2: ALERT, Airborne
AC13 Altitude: 22825, Units: ft

      4) should have the proper type
Flight Status 2: ALERT, Airborne
AC13 Altitude: 22825, Units: ft

      5) should have the correct number of bits
Flight Status 5: Special Position Identification. Airborne or Ground

      6) should have the correct responder capabilities
Flight Status 5: Special Position Identification. Airborne or Ground

      7) should have the correct ICAO code
Flight Status 5: Special Position Identification. Airborne or Ground

      8) should have the correct extended squitter type and subtype
    that are long
Flight Status 5: Special Position Identification. Airborne or Ground

      9) should have the proper type
Flight Status 5: Special Position Identification. Airborne or Ground

      10) should have the correct number of bits
Flight Status 5: Special Position Identification. Airborne or Ground

      11) should have the correct responder capabilities
Flight Status 7: Unknown flight status: 7

      12) should have the correct ICAO code
Flight Status 7: Unknown flight status: 7

      13) should have the correct extended squitter type and subtype

  packets
    that are invalid
      ✓ should return ERR_PACKET_INVALID when lacking delimiters
Flight Status 1: Normal, On the ground
Could not decode AC13

      ✓ should return ERR_PACKET_TOO_SHORT when too short
Flight Status 7: Unknown flight status: 7

      ✓ should return ERR_PACKET_TOO_LONG when too long
    that are valid
Flight Status 7: Unknown flight status: 7

      ✓ should look like a packet

  stats
    at the start
      ✓ should be empty
    after processing
Flight Status 7: Unknown flight status: 7

      14) should increment packets counter
      15) should increment invalid_packets counter
Flight Status 7: Unknown flight status: 7

      16) should increment crc_errors counter


  6 passing (27ms)
  16 failing

  1) packets with bad crc should fail the crc check:
     TypeError: Object #<Assertion> has no method 'include'


  2) packets with good crc should pass the crc check:
     TypeError: Object #<Assertion> has no method 'include'


  3) packets with bad crc that can be recovered should fail the crc check:
     TypeError: Object #<Assertion> has no method 'include'


  4) packets that are short should have the proper type:
     TypeError: Object #<Assertion> has no method 'include'


  5) packets that are short should have the correct number of bits:
     TypeError: Object #<Assertion> has no method 'include'


  6) packets that are short should have the correct responder capabilities:
     TypeError: Object #<Assertion> has no method 'include'


  7) packets that are short should have the correct ICAO code:
     TypeError: Object #<Assertion> has no method 'include'


  8) packets that are short should have the correct extended squitter type and subtype:
     TypeError: Object #<Assertion> has no method 'include'


  9) packets that are long should have the proper type:
     TypeError: Object #<Assertion> has no method 'include'


  10) packets that are long should have the correct number of bits:
     TypeError: Object #<Assertion> has no method 'include'


  11) packets that are long should have the correct responder capabilities:
     TypeError: Object #<Assertion> has no method 'include'


  12) packets that are long should have the correct ICAO code:
     TypeError: Object #<Assertion> has no method 'include'


  13) packets that are long should have the correct extended squitter type and subtype:
     TypeError: Object #<Assertion> has no method 'include'


  14) stats after processing should increment packets counter:
     TypeError: Object #<Assertion> has no method 'include'


  15) stats after processing should increment invalid_packets counter:
     TypeError: Object #<Assertion> has no method 'include'


  16) stats after processing should increment crc_errors counter:
     TypeError: Object #<Assertion> has no method 'include'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions