scozv / algo-js

[obsoleted] has been moved to project Tango:
https://github.com/scozv/tango
GNU General Public License v3.0
2 stars 1 forks source link

Dijkstra test failed after converting to ES 6 #23

Closed scozv closed 8 years ago

scozv commented 8 years ago

rev https://github.com/scozv/algo-js/commit/b20684191d2b23e43043038fe44f95d0c60ef73a

1) graph algorithm dijkstra on graph:

      AssertionError: expected Array [ 0, 28, 27, 7, 44, 96, 107, 4, 47, 58, 39, 124, 39, 38, 48 ] to equal Array [ 0, 22, 27, 7, 23, 11, 17, 4, 31, 36, 23, 35, 23, 38, 42 ] (at '1', A has 28 and B has 22)
      + expected - actual

       [
         0
      -  28
      +  22
         4
      -  47
      -  58
      -  39
      -  124
      -  39
      +  31
      +  36
      +  23
      +  35
      +  23
         38
      -  48
      +  42
         27
         7
      -  44
      -  96
      -  107
      +  23
      +  11
      +  17
       ]

      at Assertion.fail (node_modules/should/lib/assertion.js:92:17)
      at Assertion.Object.defineProperty.value (node_modules/should/lib/assertion.js:164:19)
      at Context.<anonymous> (test/q.js:28:94)