1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +02:00
Beef/IDEHelper/Tests/src/Ints.bf

26 lines
403 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
using System;
namespace Tests
{
class Ints
{
[Test]
public static void TestUInt64()
{
var str = scope String();
uint64 val = 0x11223344'55667788;
str.AppendF("{0:X}", val);
//Test.Assert(str == "1122334455667788");
}
[Test]
public static void TestInt64()
{
Test.Assert(Math.Min((int64)-1, (int64)0) == -1);
Test.Assert(Math.Max((int64)-1, (int64)0) == 0);
}
}
}