diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60019-UNI-18780.cs')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60019-UNI-18780.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60019-UNI-18780.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60019-UNI-18780.cs new file mode 100644 index 00000000..0eea713e --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60019-UNI-18780.cs @@ -0,0 +1,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); |