summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18780.cs
blob: 0eea713ed2594b35223812b1314025eb828ffa8b (plain)
1
2
3
4
5
6
7
// note that this only happens with positive int literals. if i use a float with a decimal, or 'c' or "abc" or whatever, or even `(-5)`, it's ok.
5.Clamp(2, 10).ShouldBe(5);
5.Clamp(-5, 10).ShouldBe(5);
5.Clamp("a", 10).ShouldBe(5);

"4".Clamp(2, 10).ShouldBe(5);
(-5).Clamp(2, 10).ShouldBe(5);