fnmatch.stdout 940 B

12345678910111213141516171819202122232425262728293031
  1. Should succeed:
  2. "*World" matches "Hello World"
  3. "*World" matches "World"
  4. "Hello*" matches "Hello World"
  5. "H[ae]llo?World" matches "Hallo+World"
  6. "H[ae]llo?World" matches "Hello_World"
  7. "[0-9][!a]" matches "1b"
  8. "/a/*/d" matches "/a/b/c/d"
  9. "/a/*/d" matches "/a/bc/d"
  10. "*hello" matches ".hello"
  11. "/*hello" matches "/.hello"
  12. "[a!][a!]" matches "!a"
  13. "[\]]" matches "]"
  14. "[\\]" matches "\"
  15. "hello[/+]world" matches "hello/world"
  16. "hello world" matches "HELLO WORLD"
  17. Should fail:
  18. "*World" doesn't match "Hello Potato"
  19. "*World" doesn't match "Potato"
  20. "H[ae]llo?World" doesn't match "Hillo+World"
  21. "H[ae]llo?World" doesn't match "Hello__World"
  22. "[0-9][!a]" doesn't match "ab"
  23. "[0-9][!a]" doesn't match "2a"
  24. "/a/*/d" doesn't match "/a/b/c/d"
  25. "/a/*/d" doesn't match "/a/bc/d/"
  26. "*hello" doesn't match ".hello"
  27. "/*hello" doesn't match "/.hello"
  28. "[a!][a!]" doesn't match "ab"
  29. "hello[/+]world" doesn't match "hello/world"
  30. "hello world" doesn't match "HELLO WORLD"