Changeset 15344 for branches/PushGP/HeuristicLab.PushGP/FeatureTests
- Timestamp:
- 08/29/17 18:05:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/FeatureTests/Program.cs
r15334 r15344 31 31 // object pooling 32 32 //Test1(); 33 Test1_2();33 //Test1_2(); 34 34 //Test3(); 35 35 … … 64 64 //TestRandomBiased(0, 4, 3); 65 65 //TestRandomBiased(0, 4, 4); 66 TestOverflowException(); 66 67 67 68 68 69 Console.WriteLine("\nPress any key to continue..."); 69 70 Console.ReadKey(false); 71 } 72 73 private static void TestOverflowException() { 74 // overflow 75 //var x = long.MinValue / -1; 76 var y = unchecked(long.MaxValue + long.MaxValue); 77 var z = unchecked((long)double.MaxValue); 78 var a = double.MaxValue + (double.MaxValue - 1); 70 79 } 71 80
Note: See TracChangeset
for help on using the changeset viewer.