Skip to content

Commit

Permalink
#20 - Failing test case added.
Browse files Browse the repository at this point in the history
  • Loading branch information
dazinator committed Mar 6, 2017
1 parent bd90022 commit c610aab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/DotNet.Glob.Tests/GlobTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,17 @@ public void BugFix_Can_Read_Tilde()
Assert.True(isMatch);
}

/// <summary>
/// Regression Test for https://github.com/dazinator/DotNet.Glob/pull/15
/// </summary>
[Fact]
public void BugFix_Issue_20_Can_Read_Colon_And_Underscore()
{
// This is a different glob library, I am seeing if it matches the same patterns as my library.
// The three tests above commented out show it currently has some limitations, that this library doesn't.
var glob = Glob.Parse("C:\\THIS_IS_A_DIR\\*");
var isMatch = glob.IsMatch("C:\\THIS_IS_A_DIR\\somefile");
Assert.True(isMatch);
}
}
}

0 comments on commit c610aab

Please sign in to comment.