Skip to content

Releases: tjohnston-softdev/aurion-assessment-2110

NPM Update (2023-09-29)

29 Sep 08:21
Compare
Choose a tag to compare

NPM Update (2023-08-25)

25 Aug 08:18
Compare
Choose a tag to compare
  • Updated mocha and chai NPM packages.
  • Corrected unit test command instructions.

Coding style update

28 Nov 07:27
Compare
Choose a tag to compare

Re-wrote the existing code in a cleaner, more professional style.

Security Update (2022-11-21)

21 Nov 07:24
Compare
Choose a tag to compare

Updated packages to fix security vulnerability.

Security Update (2022-01-27)

27 Jan 03:29
Compare
Choose a tag to compare

Updated mocha to 9.2.0, fixing security vulnerability.

Co-Pairing Update

12 Dec 06:49
Compare
Choose a tag to compare

Changes from Unit Tests update

  • Set hard edge distance limit of one billion (1000000000)
  • Implemented unit testing modes:
    • Input
    • Parse
    • Exact
    • Shortest
    • Possible
    • Submission
  • Route criteria types:
    • Start node(s)
    • End node(s)
    • Number of stops (Pre-existing)
    • Total distance (Pre-existing)
    • One-way (No backtracking)
    • Template pattern
  • Route criteria can consider any number of start or end nodes.
  • Route template patterns use Regular Expressions with two key differences:
    • \s and \S represent any start node.
    • \e and \E represent any end node.
  • Custom error messages for invalid route criteria.
  • Precompiled 'pathfinding' unit tests example graph.
  • Moved unit test parse output JSON file to its own script.
  • For 'possible routes' pathfinding, consider an Infinite number of routes, skipping loop if necessary.

Unit Tests Update

26 Oct 23:19
Compare
Choose a tag to compare

Changes from original submission

  • Implemented unit tests for:
    • Input file validation.
    • Graph parsing.
    • Pathfinding algorithms.
    • Submission example cases.
  • Revised implementation details:
    • Removed stray horizontal rule under implementation details
    • Described output for different pathfinding functions.
    • Described project dependencies.
    • Various formatting changes throughout.
  • Revised submission code.
    • Merged "NO SUCH ROUTE" text into common function.
    • Parsed graph must have multiple nodes/edges
    • Revised 'possible routes' algorithm to avoid impossible sequences
    • Split submission test cases to their own file.
  • Dependencies.
    • The submission itself uses no third-party packages. Everything is written in native Node JS.
    • Unit tests were implemented using mocha and chai

Submission

15 Oct 05:33
Compare
Choose a tag to compare

My submission for the Aurion assessment (15 October 2021)