mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
26 lines
403 B
Beef
26 lines
403 B
Beef
![]() |
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);
|
||
|
}
|
||
|
}
|
||
|
}
|