Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Fixed bugs in bstg_flist_import()#4

Open
kirussel wants to merge 1 commit intogoogle:masterfrom
kirussel:bstg_flist_import_42
Open

Fixed bugs in bstg_flist_import()#4
kirussel wants to merge 1 commit intogoogle:masterfrom
kirussel:bstg_flist_import_42

Conversation

@kirussel
Copy link
Copy Markdown
Contributor

This adventure started when I passed a string with newlines to bstg_flist_import(). The newlines caused the parse to fail with no clues to stderr about what went wrong.

Bugs I fixed in bstg_flist_import():

  • added support for tabs and newlines in the input string
  • treat empty strings "" and " " the same way -- both as an error
  • use warnx() to print useful error messages
  • removed a TODO -- fix the bug were you cannot call bstg_flist_import() more than once in the unit tests
  • prove gives an warning (You named your test '1'. You shouldn't use numbers for your test names.) if tests are named with just a number -- I rename tests named like "1"

@kirussel kirussel force-pushed the bstg_flist_import_42 branch from 397fbe8 to aa1b511 Compare March 26, 2016 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant