Last active
December 22, 2019 03:19
-
-
Save ericoporto/d7587cc869917eb2393d06bfa568ae36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1..44 | |
| ok 1 - FloatToInt(10.7, eRoundDown) == 10 | |
| ok 2 - FloatToInt(10.7, eRoundUp) == 11 | |
| ok 3 - FloatToInt(10.7, eRoundNearest) == 11 | |
| ok 4 - 54.999 <= IntToFloat(55) <= 55.001 | |
| ok 5 - -0.001 <= Maths.ArcCos(1.0) <= 0.001 | |
| ok 6 - 1.569 <= Maths.ArcCos(0.0) <= 1.571 | |
| ok 7 - -0.001 <= Maths.ArcSin(0.0) <= 0.001 | |
| ok 8 - 1.569 <= Maths.ArcSin(1.0) <= 1.571 | |
| ok 9 - 0.784 <= Maths.ArcTan(1.0) <= 0.786 | |
| ok 10 - -0.001 <= Maths.ArcTan(0.0) <= 0.001 | |
| ok 11 - 0.784 <= Maths.ArcTan(1.0) <= 0.786 | |
| ok 12 - 2.355 <= Maths.ArcTan(1.0) <= 2.357 | |
| ok 13 - -2.355 <= Maths.ArcTan(1.0) <= -2.357 | |
| ok 14 - -0.784 <= Maths.ArcTan(1.0) <= -0.786 | |
| ok 15 - 0.999 <= Maths.Cos(0.0) <= 1.001 | |
| ok 16 - 0.876 <= Maths.Cos(0.5) <= 0.878 | |
| ok 17 - 1.126 <= Maths.Cosh(0.5) <= 1.128 | |
| ok 18 - -0.001 <= Maths.DegreesToRadians(0.0) <= 0.001 | |
| ok 19 - 1.569 <= Maths.DegreesToRadians(90.0) <= 1.571 | |
| ok 20 - 0.999 <= Maths.Exp(0.0) <= 1.001 | |
| ok 21 - 2.717 <= Maths.Exp(1.0) <= 2.719 | |
| ok 22 - 7.388 <= Maths.Exp(2.0) <= 7.390 | |
| ok 23 - -0.001 <= Maths.Log(1.0) <= 0.001 | |
| ok 24 - 0.999 <= Maths.Log(2.7182818) <= 1.001 | |
| ok 25 - -0.001 <= Maths.Log10(1.0) <= 0.001 | |
| ok 26 - 0.999 <= Maths.Log10(10.0) <= 1.001 | |
| ok 27 - -0.001 <= Maths.RadiansToDegrees(0.0) <= 0.001 | |
| ok 28 - 89.999 <=Maths.RadiansToDegrees(1.5707963) <= 90.001 | |
| ok 29 - 0.999 <= Maths.RaiseToPower(2.0, 0.0) <= 1.001 | |
| ok 30 - 1.999 <= Maths.RaiseToPower(2.0, 1.0) <= 2.001 | |
| ok 31 - 3.999 <= Maths.RaiseToPower(2.0, 2.0) <= 4.001 | |
| ok 32 - -0.001 <= Maths.Sin(0.0) <= 0.001 | |
| ok 33 - 0.840 <= Maths.Sin(1.0) <= 0.842 | |
| ok 34 - 0.520 <= Maths.Sinh(0.5) <= 0.522 | |
| ok 35 - 1.999 <= Maths.Sqrt(4.0) <= 2.001 | |
| ok 36 - 2.999 <= Maths.Sqrt(9.0) <= 3.001 | |
| ok 37 - 3.999 <= Maths.Sqrt(16.0) <= 4.001 | |
| ok 38 - 255.999 <= Maths.Sqrt(65536.0) <= 256.001 | |
| ok 39 - -0.001 <= Maths.Tan(0.0) <= 0.001 | |
| ok 40 - 1.556 <= Maths.Tan(1.0) <= 1.558 | |
| ok 41 - -1.556 <= Maths.Tan(-1.0) <= -1.558 | |
| ok 42 - 0.760 <= Maths.Tanh(1.0) <= 0.762 | |
| ok 43 - -0.001 <= Maths.Tanh(0.0) <= 0.001 | |
| ok 44 - 3.140 <= Maths.Pi <= 3.142 | |
| # failed tests: 0 | |
| # passed tests: 44 | |
| # total tests: 44 | |
| # planned tests: 44 | |
| 1..23 | |
| ok 1 - String.Append test | |
| ok 2 - String.AppendChar test | |
| ok 3 - String.CompareTo sensitivity off | |
| ok 4 - String.CompareTo sensitivity on | |
| ok 5 - String.Copy test | |
| ok 6 - String.EndsWith test | |
| ok 7 - String.Format test | |
| ok 8 - String.IndexOf test | |
| ok 9 - String.IsNullOrEmpty test null string | |
| ok 10 - String.IsNullOrEmpty test empty string | |
| ok 11 - String.IsNullOrEmpty test non-empty string | |
| ok 12 - String.LowerCase test | |
| ok 13 - String.Replace test | |
| ok 14 - String.ReplaceCharAt test | |
| ok 15 - String.StartsWith test | |
| ok 16 - String.Substring test | |
| ok 17 - String.Truncate test | |
| ok 18 - String.UpperCase test | |
| ok 19 - String.AsFloat test with ''Hello'' | |
| ok 20 - String.AsInt test with ''53'' | |
| ok 21 - String.AsInt test with ''Hello'' | |
| ok 22 - String.Chars test | |
| ok 23 - String.Length test | |
| # failed tests: 0 | |
| # passed tests: 23 | |
| # total tests: 23 | |
| # planned tests: 23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment