| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c5c8e57 commit db6c1b2
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -641,6 +641,16 @@ public static int Overloaded(int i, string s) | |||
| 641 | 641 | { | |
| 642 | 642 | return i; | |
| 643 | 643 | } | |
| 644 | + | ||
| 645 | + public static string CaseSensitive() | ||
| 646 | + { | ||
| 647 | + return "CaseSensitive"; | ||
| 648 | + } | ||
| 649 | + | ||
| 650 | + public static string Casesensitive() | ||
| 651 | + { | ||
| 652 | + return "Casesensitive"; | ||
| 653 | + } | ||
| 644 | 654 | } | |
| 645 | 655 | ||
| 646 | 656 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -819,3 +819,16 @@ def test_object_in_multiparam_exception(): | |||
| 819 | 819 | ||
| 820 | 820 | with pytest.raises(TypeError): | |
| 821 | 821 | MethodTest.TestOverloadedObjectThree("foo", "bar") | |
| 822 | + | ||
| 823 | + | ||
| 824 | + def test_case_sensitive(): | ||
| 825 | + """Test that case-sensitivity is respected. GH#81""" | ||
| 826 | + | ||
| 827 | + res = MethodTest.CaseSensitive() | ||
| 828 | + assert res == "CaseSensitive" | ||
| 829 | + | ||
| 830 | + res = MethodTest.Casesensitive() | ||
| 831 | + assert res == "Casesensitive" | ||
| 832 | + | ||
| 833 | + with pytest.raises(AttributeError): | ||
| 834 | + MethodTest.casesensitive() | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments