Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests #5

Open
Ivshti opened this issue Apr 10, 2016 · 3 comments
Open

Tests #5

Ivshti opened this issue Apr 10, 2016 · 3 comments

Comments

@Ivshti
Copy link
Owner

Ivshti commented Apr 10, 2016

There should be tests for this, covering as many cases as possible.

E.g.:

"pioneer.one.s01.e02.mp4"
"pioneer.one.102.mp4"

movies as well

@Ivshti
Copy link
Owner Author

Ivshti commented Apr 10, 2016

added one test case, others can be added with copy paste

0a4df73

@vankasteelj
Copy link
Contributor

var movies = [
  "pioneer.one.avi",        //movie
  "pioneer.one.2014.avi",   //movie with year
  "pioneer.201.2014.avi",   //movie with stamp & year
  "pioneer.1980.2014.avi",  //movie with longstamp & year (new movie)
  "pioneer.2020.1980.avi"   //movie with longstam & year (old movie)
];
var shows = [
    "pioneer.one.s01e01.avi",       //show with long-md
    "pioneer.one.s1e1.avi",         //show with short-md //never seen
    "pioneer.one.1x1.avi",          //show with alt-short-md
    "pioneer.one.01x01.avi",        //show with alt-long-md
    "pioneer.one.season.1.episode.1.avi", //show with full md //never seen
    "pioneer.one.1014.avi",         //show with unmarked md
    "pioneer.one.2014.217.avi",     //show with year & unmarked short-md
    "pioneer.one.2014.1017.avi",    //show with year & unmarked long-md
    "pioneer.one.2014.s01e01.avi",  //show with year & long-md
    "pioneer.201.s01e01.avi"        //show with stamp & long-md
    "pioneer.201.2014.s01e01.avi"   //total fuck up
];

@Ivshti
Copy link
Owner Author

Ivshti commented Apr 10, 2016

@vankasteelj thanks
85aaabe

not perfect, but is something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants