Skip to content

v0.6 Almost ready for sorting algorithm implementation

Compare
Choose a tag to compare
@biralavor biralavor released this 04 Jun 14:02
· 245 commits to main since this release

Still TODO:

  • make test for signs (- +)
  • make test for non-numbers input
  • make test for empty list
  • make test for a list with '0'
  • make test to swap a list with two and three numbers
  • make test to swap a list with four and five numbers

Adding more tests at MU_TEST_SUITE:

Screenshot from 2024-06-04 10-55-20
Screenshot from 2024-06-04 10-54-00

Most difficult test to build, until now: test_buildstack_argv

How to simulate argvs from user? How to translate this data?
Besides everything is a number on a computer, the terminal treats user's input as strings, even it looks like a number ;)
So, how about calling the split() to cut user input at every space?
Screenshot from 2024-06-04 11-00-00

Updating Makefile to simulate user numbers input for ./push_swap <numbers>

Screenshot from 2024-06-04 10-52-30

Full Changelog: v0.5...v0.6